bugDotGNU Portable.NET - Bugs: bug #9196, Layout of docked Controls not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9196: Layout of docked Controls not allways initialized

Submitter:  Ansgar Lampe <zaldron>
Submitted:  Wed 02 Jun 2004 09:18:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Discussion

Wed 16 Jun 2004 03:32:14 PM UTC, comment #1: 

Fixed in CVS 16ht June 2004

Gopal.V <t3rmin4t0r>
Group administrator
Wed 02 Jun 2004 09:18:31 PM UTC, original submission:  

The layout of docked Controls is not allways initialized on dotGNU. My attached testcase shows the problem: Initially the Form shows in the lower left part only part of the layout... all layout is only shown after moving the horizontal Splitter.

As far as I found out till now, the Reason is that the Controls Handle is not yet created when the Child-Controls are added (whose handles don't exist as well). This causes on the one hand the Parent-Controls ControlCollections Add (Control) method, not to PerformLayout (on one of the last code lines before end of that function). On the other hand it stops the LayoutProcess at the beginning, because PerformLayout returns immidiately because IsHandleCreated returns false.

For my understanding of the Control-Class code is not too good, I only suggest two ways to patch the problem and you may decide whether any of them is at least acceptable (both are extremely easy).

1. add a 'PerformLayout();' to OnHandleCreated (to line 4602)

2. remove both mentioned 'IsHandleCreated'-tests (lines 5450 and 2553) (which I don't really understand anyway)

Ansgar Lampe <zaldron>

 

Attached Files

Attached Files
file #1374:  testcase.cs added by zaldron (4.9KiB - application/octet-stream - Move horizontal Splitter to see the wonder happen)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-16 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-06-02 zaldron Attached File- Added testcase.cs, #1366

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code