[Mono-bugs] [Bug 80778][Nor] Changed - ScrollableControl doesn't work properly when resized

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 9 17:59:01 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 georgegiolfan at yahoo.com.

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

--- shadow/80778	2007-02-09 17:53:02.000000000 -0500
+++ shadow/80778.tmp.4647	2007-02-09 17:59:01.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: 1.2
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: toshok at ximian.com                            
 ReportedBy: georgegiolfan at yahoo.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -54,6 +54,34 @@
 
 Expected Results:
 No scroll bars.
 
 How often does this happen? 
 Always (on the SVN version).
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-02-09 17:59 -------
+Fixed test:
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+class TestForm : Form {
+    static void Main() {
+        Application.Run(new TestForm());
+    }
+    Button b = new Button();
+    ScrollableControl s = new ScrollableControl();
+    public TestForm() {
+        b.Text = "Very large content";
+        b.Size = new Size(ClientSize.Width * 2, ClientSize.Height * 
+2);
+        s.AutoScroll = true;
+        s.AutoScrollMinSize = b.Size;
+        s.Dock = DockStyle.Fill;
+        s.Controls.Add(b);
+        Controls.Add(s);
+    }
+    protected override void OnLoad(EventArgs e) {
+        base.OnLoad(e);
+        s.AutoScrollPosition = new Point(0, ClientSize.Height);
+        ClientSize = b.Size;
+    }
+}


More information about the mono-bugs mailing list