Scaling suppresses alignment (bug?)

DmitryS
Posts: 26
Joined: Wed Nov 27, 2019 11:03 am

Scaling suppresses alignment (bug?)

Post by DmitryS » Mon Dec 02, 2019 3:01 pm

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
(235.22 KiB) Downloaded 20 times
result.zip
(240.27 KiB) Downloaded 18 times

Costin
Posts: 697
Joined: Mon Dec 05, 2011 6:04 pm

Re: Scaling suppresses alignment (bug?)

Post by Costin » Tue Dec 03, 2019 4:42 pm

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 » Wed Dec 04, 2019 9:45 am

Thank you!

Post Reply