Skip to content
Discussion options

You must be logged in to vote

Hello,

We are closing this thread due to inactivity. We apologize for the delayed response. Thank you for taking the time to reach out and contribute to the project — your feedback helps us improve QuestPDF.

The issue is that FitHeight() fills the full available height and is meant to be paired with a height constraint, so without one it expands against your ShrinkVertical and grows the row. Use FitArea() instead — it scales the image proportionally to fit within the space your ShrinkVertical().Row(...) already bounds to the text column's height, without overgrowing. See the Image documentation for all fitting options. For an exact match in more dynamic layouts, you can also constrain the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DawidRobertNowak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants