[Mono-bugs] [Bug 78871][Min] Changed - Setting Splitter.SplitPosition does not have any effect

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 21 20:31:04 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=78871

--- shadow/78871	2006-07-20 15:03:41.000000000 -0400
+++ shadow/78871.tmp.4785	2007-01-21 20:31:04.000000000 -0500
@@ -1,15 +1,15 @@
 Bug#: 78871
 Product: Mono: Class Libraries
-Version: 1.0
+Version: 1.2
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
-Priority: Cosmetic
+Priority: Minor
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: georgegiolfan at yahoo.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
@@ -51,6 +51,35 @@
 Additional Information:
 The Splitter.SplitPosition set accessor does not seem to actually resize 
 anything.
 
 ------- Additional Comments From peter at novonyx.com  2006-07-20 15:03 -------
 Thanks for the report and the testcase. Fixed in svn r62832.
+
+------- Additional Comments From georgegiolfan at yahoo.com  2007-01-21 20:31 -------
+Here is another case:
+using System.Windows.Forms;
+class Test : Form {
+    public Test() {
+        TextBox TextBox1 = new TextBox();
+        TextBox1.Dock = DockStyle.Left;
+        Splitter Splitter = new Splitter();
+        Splitter.Dock = DockStyle.Left;
+        TextBox TextBox2 = new TextBox();
+        TextBox2.Dock = DockStyle.Fill;
+        Controls.AddRange(new Control[] { TextBox2, Splitter, 
+TextBox1 });
+        Splitter.Capture = true;
+        Splitter.SplitPosition = (ClientSize.Width - Splitter.Width) 
+/ 2;
+    }
+    static void Main() {
+        Application.Run(new Test());
+    }
+}
+It seems to be cause by this (in the Splitter.SplitPosition setter):
+if (Capture || (affected == null)) {
+    return;
+}
+
+Why does it care about Capture?
+


More information about the mono-bugs mailing list