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

Submitted by:  Ansgar Lampe <zaldron>
Submitted on:  Wed 02 Jun 2004 09:18:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Fixed in CVS 16ht June 2004

Gopal.V <t3rmin4t0r>
Project 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
file #1374:  testcase.cs added by zaldron (5KiB - application/octet-stream - Move horizontal Splitter to see the wonder happen)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 16 Jun 2004 03:32:14 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Wed 02 Jun 2004 09:18:31 PM UTCzaldronAttached File-=>Added testcase.cs, #1366

Back to the top


Powered by Savane 3.1-cleanup1