Scaling suppresses alignment (bug?)

Post here questions and problems related to editing and publishing DITA content.
DmitryS
Posts: 26
Joined: Wed Nov 27, 2019 11:03 am

Scaling suppresses alignment (bug?)

Post 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
scale.zip
result.zip
You do not have the required permissions to view the files attached to this post.
Costin
Posts: 846
Joined: Mon Dec 05, 2011 6:04 pm

Re: Scaling suppresses alignment (bug?)

Post 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

<image outputclass="center">

Code: Select all

*[class~="center"]{
	display:block;
	margin-left:auto;
	margin-right:auto;
}
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
DmitryS
Posts: 26
Joined: Wed Nov 27, 2019 11:03 am

Re: Scaling suppresses alignment (bug?)

Post by DmitryS »

Thank you!
julien_lacour
Posts: 665
Joined: Wed Oct 16, 2019 3:47 pm

Re: Scaling suppresses alignment (bug?)

Post 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
Post Reply