[Mono-bugs] [Bug 80628][Wis] New - TextBox has wrong ClientRectangle.Height after setting BorderStyle to FixedSingle
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 25 19:45:28 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=80628
--- shadow/80628 2007-01-25 19:45:28.000000000 -0500
+++ shadow/80628.tmp.4737 2007-01-25 19:45:28.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 80628
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: TextBox has wrong ClientRectangle.Height after setting BorderStyle to FixedSingle
+
+Steps to reproduce the problem:
+using System;
+using System.Diagnostics;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ TextBox t = new TextBox();
+ public TestForm() {
+ Controls.Add(t);
+ }
+ protected override void OnClick(EventArgs e) {
+ base.OnClick(e);
+ t.BorderStyle = BorderStyle.FixedSingle;
+ Debug.Assert(t.ClientRectangle.Height == 20);
+ }
+}
More information about the mono-bugs
mailing list