[Mono-bugs] [Bug 81397][Wis] New - GroupBox Padding property does not re-draw child controls at correct position

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 18 19:59:39 EDT 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 robbel at gmail.com.


--- shadow/81397	2007-04-18 19:59:39.000000000 -0400
+++ shadow/81397.tmp.2296	2007-04-18 19:59:39.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 81397
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: robbel at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: GroupBox Padding property does not re-draw child controls at correct position
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem: Whenever I create a GroupBox that contains a 
+PictureBox as its child control and set the Padding property of the 
+former to something different than the default 0,0,0,0, then the child is 
+only positioned correctly if the size of the GroupBox is not changed. If 
+I e.g. resize the window (implies resize of GroupBox), then the Padding 
+is "forgot" and the child control placed and sized incorrectly.
+Steps to reproduce the problem:
+1. Create Form with a single GroupBox that resizes with the main Form. 
+Set the padding of that GroupBox to (e.g.) 14,7,14,14. 
+2. Add a PictureBox control as the only child of that GroupBox and make 
+the border of that PictureBox visible (to demonstrate the bug).
+3. Start the application. Observe that initially the PictureBox is placed 
+correctly. Now resize the window and see how the Padding is "forgot" and 
+the child control placed incorrectly. 
+Actual Results:
+As above.
+Expected Results:
+As above.
+How often does this happen? 
+Additional Information:

More information about the mono-bugs mailing list