[Mono-bugs] [Bug 80778][Nor] New - ScrollableControl doesn't work properly when resized
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Feb 9 17:53:02 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.4546 2007-02-09 17:53:02.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 80778
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ScrollableControl doesn't work properly when resized
+
+Description of Problem:
+If a ScrollableControl is displaying scroll bars and it is resized so that
+scroll bars are not neeeded, they are still displayed or the contents of
+the ScrollableControl are displayed in a wrong place.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+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() {
+ Button b = new Button();
+ 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 = new Size(ClientSize.Width * 2, ClientSize.Height * 2);
+ }
+}
+
+Actual Results:
+Scroll bars
+
+Expected Results:
+No scroll bars.
+
+How often does this happen?
+Always (on the SVN version).
More information about the mono-bugs
mailing list