We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24a1be0 + 0fc01f2 commit 6be8ecbCopy full SHA for 6be8ecb
test/Eto.Test/Sections/Drawing/DrawTextSection.cs
@@ -19,7 +19,9 @@ public DrawTextSection()
19
20
Control Default()
21
{
22
- var control = new Drawable { Size = new Size(400, 500), BackgroundColor = Colors.Black };
+ var control = new Drawable { Width = 400, BackgroundColor = Colors.Black };
23
+ var height = GetDrawInfo().Sum(r => r.Font.MeasureString(r.Text).Height);
24
+ control.Height = (int)height;
25
control.Paint += (sender, e) => DrawFrame(e.Graphics);
26
return control;
27
}
0 commit comments