Project: SWT
Bug 86402 ToolBar only needs to resize its children if the bounds are required
Reported: 2005-02-23 18:11:47 | Status: resolved fixed

ToolBar currently calls forceResize() in layoutItems(). This is required to ensure that items with controls can update their position. This call is expensive, and so deferring it until someone requires the bounds is a performance improvement. A similar strategy to the one used for getClientArea() of TabFolder and Group can be used.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolBar.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java