Prechádzať zdrojové kódy

Fix: the Stack may not show last an element in certain scenarios

Marcin Ziąbek 4 rokov pred
rodič
commit
e3e7a22af8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      QuestPDF/Elements/Stack.cs

+ 1 - 1
QuestPDF/Elements/Stack.cs

@@ -74,7 +74,7 @@ namespace QuestPDF.Elements
                 return;
 
             var firstHeight = firstSize?.Height ?? 0;
-            var spaceForSecond = new Size(availableSpace.Width, availableSpace.Height - firstHeight);
+            var spaceForSecond = new Size(availableSpace.Width, availableSpace.Height - firstHeight + Size.Epsilon);
             var secondMeasurement = Second?.Measure(spaceForSecond) as Size;
 
             if (secondMeasurement == null)