|
|
@@ -389,8 +389,8 @@ namespace MonoTests.System.Windows.Forms
|
|
|
Assert.AreEqual (new Size (100, 100), c.Size, "A1");
|
|
|
|
|
|
f.Dispose ();
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
private class DisplayRectangleForm : Form
|
|
|
{
|
|
|
public override Rectangle DisplayRectangle
|
|
|
@@ -401,14 +401,14 @@ namespace MonoTests.System.Windows.Forms
|
|
|
|
|
|
[Test] // bug 80912
|
|
|
public void AnchoredControlWithZeroWidthAndHeight ()
|
|
|
- {
|
|
|
- Form f = new Form ();
|
|
|
- f.ShowInTaskbar = false;
|
|
|
-
|
|
|
- Control c = new Control ();
|
|
|
- c.Anchor = AnchorStyles.Left | AnchorStyles.Right;
|
|
|
- f.Controls.Add (c);
|
|
|
-
|
|
|
+ {
|
|
|
+ Form f = new Form ();
|
|
|
+ f.ShowInTaskbar = false;
|
|
|
+
|
|
|
+ Control c = new Control ();
|
|
|
+ c.Anchor = AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ f.Controls.Add (c);
|
|
|
+
|
|
|
Assert.AreEqual (new Rectangle (0, 0, 0, 0), c.Bounds, "N1");
|
|
|
}
|
|
|
}
|