Preview: do not collect information about simple containers
This commit is contained in:
@@ -148,6 +148,7 @@ namespace QuestPDF.Drawing
|
||||
$"Please analyze your documents structure to detect this element and fix its size constraints.";
|
||||
|
||||
content.RemoveExistingProxies();
|
||||
content.RemoveExistingContainers();
|
||||
content.ApplyLayoutDebugging();
|
||||
content.Measure(Size.Max);
|
||||
|
||||
|
||||
@@ -23,6 +23,14 @@ namespace QuestPDF.Drawing.Proxy
|
||||
x.CreateProxy(y => y is ElementProxy proxy ? proxy.Child : y);
|
||||
});
|
||||
}
|
||||
|
||||
public static void RemoveExistingContainers(this Container content)
|
||||
{
|
||||
content.VisitChildren(x =>
|
||||
{
|
||||
x.CreateProxy(y => y is Container container ? container.Child : y);
|
||||
});
|
||||
}
|
||||
|
||||
public static LayoutErrorTrace CollectLayoutErrorTrace(this Container content)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user