Skip to content

fixes rendering of images with a percentage as width or height#109

Merged
naitoh merged 1 commit into
naitoh:masterfrom
planio-gmbh:fix/image-with-percentage-width
Nov 27, 2025
Merged

fixes rendering of images with a percentage as width or height#109
naitoh merged 1 commit into
naitoh:masterfrom
planio-gmbh:fix/image-with-percentage-width

Conversation

@jkraemer

@jkraemer jkraemer commented Nov 6, 2025

Copy link
Copy Markdown

Images with style='width: X%' were not being rendered in writeHTMLCell because the percentage was calculated against a reference size of 1 unit instead of the available content width. This resulted in images being ~0.3 units wide (essentially invisible).

Images with style='width: X%' were not being rendered in writeHTMLCell because
the percentage was calculated against a reference size of 1 unit instead of the
available content width. This resulted in images being ~0.3 units wide
(essentially invisible).

@naitoh naitoh left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your report and this PR.

@naitoh naitoh merged commit 6c93cd1 into naitoh:master Nov 27, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants