Bug 39337 - Cool bar forces extra resize events
Summary: Cool bar forces extra resize events
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 39141
  Show dependency tree
 
Reported: 2003-06-25 14:36 EDT by Tod Creasey CLA
Modified: 2003-07-02 09:13 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.