We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43caf42 commit 38ff535Copy full SHA for 38ff535
Source/HtmlRenderer.WPF/HtmlLabel.cs
@@ -96,6 +96,9 @@ protected override Size MeasureOverride(Size constraint)
96
}
97
98
99
+ if (double.IsPositiveInfinity(constraint.Width) || double.IsPositiveInfinity(constraint.Height))
100
+ constraint = Size.Empty;
101
+
102
return constraint;
103
104
Source/HtmlRenderer.WPF/HtmlPanel.cs
@@ -142,6 +142,9 @@ protected override Size MeasureOverride(Size constraint)
142
if (relayout)
143
PerformHtmlLayout(constraint);
144
145
146
+ constraint = size;
147
148
149
150
0 commit comments