Ver código fonte

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

Marcin Ziąbek 4 anos atrás
pai
commit
6d41ac9b9a
1 arquivos alterados com 1 adições e 1 exclusões
  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)