Image FitHeight #830
-
|
Hi, I am trying to have a row container with two items. The first item is a Column with several items. The second item in the row is an image which should Fit its height to have the same height as the first section (with columns container). If I use Image.FitUnproportionally(), it have a correct height, but if I use FitHeight, it extends height of the first item. How can I set the image the same height as the first section? I don't know the size of the first section since the user can change fonts? This is the code I use: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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 Should you encounter any further problems, please don't hesitate to open a new issue. |
Beta Was this translation helpful? Give feedback.
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 yourShrinkVerticaland grows the row. UseFitArea()instead — it scales the image proportionally to fit within the space yourShrinkVertical().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…