Browse Source

Fixed build

Marcin Ziąbek 2 years ago
parent
commit
2ee2f6e811
1 changed files with 20 additions and 0 deletions
  1. 20 0
      Source/QuestPDF/Drawing/Proxy/OverflowDebuggingProxy.cs

+ 20 - 0
Source/QuestPDF/Drawing/Proxy/OverflowDebuggingProxy.cs

@@ -0,0 +1,20 @@
+using QuestPDF.Infrastructure;
+
+namespace QuestPDF.Drawing.Proxy;
+
+internal class OverflowDebuggingProxy : ElementProxy
+{
+    public SpacePlanType? SpacePlanType { get; private set; }
+
+    public OverflowDebuggingProxy(Element child)
+    {
+        Child = child;
+    }
+
+    internal override SpacePlan Measure(Size availableSpace)
+    {
+        var spacePlan = Child.Measure(availableSpace);
+        SpacePlanType = spacePlan.Type;
+        return spacePlan;
+    }
+}