Red Border and Image Overlay #823
Answered
by
MarcinZiabek
SmartValve-Jordan
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
MarcinZiabek
Mar 25, 2024
Replies: 1 comment 1 reply
-
This visualization shows an invalid layout constraint related to your logo 😄 The logo has an aspect ratio of 200:100, so when set with MaxWidth equal to 90 points (from ConstantItem), it wants to use 45 points of horizontal space but has only 30 points (from MaxHeight). This is because the default scaling strategy is FitWidth. You can either remove MaxHeight or change the Image scaling strategy to FitArea (https://www.questpdf.com/api-reference/image.html#image-scaling) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SmartValve-Jordan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This visualization shows an invalid layout constraint related to your logo 😄
The logo has an aspect ratio of 200:100, so when set with MaxWidth equal to 90 points (from ConstantItem), it wants to use 45 points of horizontal space but has only 30 points (from MaxHeight). This is because the default scaling strategy is FitWidth.
You can either remove MaxHeight or change the Image scaling strategy to FitArea (https://www.questpdf.com/api-reference/image.html#image-scaling)