[Mono-bugs] [Bug 80863][Nor] Changed - Wrong Resize Behavior With Anchors inside groupbox

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 06:25:42 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bugzilla at woy.nl.

http://bugzilla.ximian.com/show_bug.cgi?id=80863

--- shadow/80863	2007-02-15 13:25:04.000000000 -0500
+++ shadow/80863.tmp.3649	2007-02-26 06:25:42.000000000 -0500
@@ -44,6 +44,38 @@
 How often does this happen? 
 Always
 
 ------- Additional Comments From gert.driesen at pandora.be  2007-02-15 13:25 -------
 Please attach a small repro to this bug report (and save us a a few 
 secs).
+
+------- Additional Comments From bugzilla at woy.nl  2007-02-26 06:25 -------
+This test code demonstrates the problem. When resizing this form from 
+small to large a few times. The distance between de bottom of the 
+groupbox and the listview has changed. while it should stay the same.
+
+public class ResizeTest : Form
+{
+    public ResizeTest()
+    {
+        Size = new Size(300, 400);
+        GroupBox box = new GroupBox();
+        box.Location = new Point(10, 10);
+        box.Size = new Size(260, 320);
+        box.Anchor = AnchorStyles.Left | AnchorStyles.Right | 
+AnchorStyles.Top | AnchorStyles.Bottom;
+        Controls.Add(box);
+
+        ListView view = new ListView();
+        view.Location = new Point(10, 10);
+        view.Size = new Size(240, 300);
+        view.Columns.Add(new ColumnHeader("Col1"));
+        view.Columns.Add(new ColumnHeader("Col2"));
+        view.View = View.Details;
+        view.Anchor = AnchorStyles.Left | AnchorStyles.Right | 
+AnchorStyles.Top | AnchorStyles.Bottom;
+        box.Controls.Add(view);
+    }
+}
+
+ResizeTest test = new ResizeTest();
+test.Show();


More information about the mono-bugs mailing list