Bug 39337

Summary: Cool bar forces extra resize events
Product: [Eclipse Project] Platform Reporter: Tod Creasey <Tod_Creasey>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: n.a.edgar
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 39141    

Description Tod Creasey CLA 2003-06-25 14:36:49 EDT
20030625

The CoolBarManager forces extra resize events on its parent whenever it is 
resized.

This currently manifests itself as a second resize that causes the contents to 
resize themselves outside of the client area. This should be removed 
regardless as it is forcing extra resizes.

Here is the code in CoolBarManager.createControl(Composite)

coolBar.addListener(SWT.Resize, new Listener() {
   public void handleEvent(Event event) {
     coolBar.getParent().layout();
});
Comment 1 Lynne Kues CLA 2003-06-25 15:20:46 EDT
Tod, the resize callback is hooked to handle the coolitem dragging and the 
creation/removal of rows.  In this instance the layout of the workbench needs 
to be adjusted to handle the bigger/smaller coolbar area.  So simply removing 
this code will introduce a bug.  If the form layout version of the workbench 
handles this case, you can remove the code as part of that change.  I'm 
reassigning this back to you, but feel free to give it back to me if there is 
something else that is questionable.
Comment 2 Tod Creasey CLA 2003-07-02 09:13:01 EDT
I ended up reworking the current layout code to handle this. If this is a 
requirement we will have to look at what is going on when we fix the layout 
later.