Skip to content

Commit aa0d8db

Browse files
committed
Update autoported files
fd4207499f6bc5f6e99477e519beb4cc7f7c2aa8
1 parent b65d999 commit aa0d8db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/form/renderer/SelectFieldListBoxRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private float GetCalculatedHeight(IRenderer flatRenderer) {
174174
size = (int)sizeProp;
175175
}
176176
float maxOptionActualHeight = GetMaxOptionActualHeight(flatRenderer);
177-
if (maxOptionActualHeight == float.MinValue) {
177+
if (maxOptionActualHeight == float.Epsilon) {
178178
UnitValue fontSize = flatRenderer.GetProperty<UnitValue>(Property.FONT_SIZE);
179179
if (fontSize != null && fontSize.IsPointValue()) {
180180
maxOptionActualHeight = fontSize.GetValue() * 1.2f;
@@ -188,7 +188,7 @@ private float GetCalculatedHeight(IRenderer flatRenderer) {
188188
}
189189

190190
private float GetMaxOptionActualHeight(IRenderer flatRenderer) {
191-
float maxActualHeight = float.MinValue;
191+
float maxActualHeight = float.Epsilon;
192192
foreach (IRenderer child in flatRenderer.GetChildRenderers()) {
193193
if (IsOptionRenderer(child)) {
194194
float childHeight;

0 commit comments

Comments
 (0)