Page 1 of 1
Scaling suppresses alignment (bug?)
Posted: Mon Dec 02, 2019 3:01 pm
by DmitryS
Hi!
I've found that scenario "DITA Map PDF - based on HTML5 & CSS" doesn't allow me to scale image and center it at the same time.
Scaled image becomes aligned to left.
Please see attachment.
Regards,
Dmitry
Re: Scaling suppresses alignment (bug?)
Posted: Tue Dec 03, 2019 4:42 pm
by Costin
Hi DmitryS,
Thank you for reporting this behavior! I confirm I could reproduce it, so I've just logged this in our internal issue tracking system to be investigated for a possible fix that will be implemented in a future release of oXygen.
We will let you know when a fix will be implemented.
Meanwhile, you could center-align the images that also have scaling applied using CSS, by setting a custom outputclass on the images and match them through CSS like:
Code: Select all
*[class~="center"]{
display:block;
margin-left:auto;
margin-right:auto;
}
Regards,
Costin
Re: Scaling suppresses alignment (bug?)
Posted: Wed Dec 04, 2019 9:45 am
by DmitryS
Thank you!
Re: Scaling suppresses alignment (bug?)
Posted: Fri Mar 05, 2021 11:46 am
by julien_lacour
Hello,
Starting with Oxygen 23.1 (release on March 4th 2021), the @align attribute set on <image> elements is used to position them in the PDF output generated by the DITA Map PDF - based on HTML5 & CSS transformation.
Regards,
Julien