File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
itext/itext.html2pdf/itext/html2pdf/attach/impl/layout/form/renderer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments