Community
Participate
Working Groups
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(); });
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.
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.