Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 317849 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/e4/ui/workbench/renderers/swt/SashLayout.java (-3 / +4 lines)
Lines 293-301 Link Here
293
	 * @param bounds
293
	 * @param bounds
294
	 */
294
	 */
295
	private void setRectangle(MUIElement node, Rectangle bounds) {
295
	private void setRectangle(MUIElement node, Rectangle bounds) {
296
		if (node.getWidget() instanceof Control)
296
		if (node.getWidget() instanceof Control) {
297
			((Control) (node.getWidget())).setBounds(bounds);
297
			Control ctrl = (Control) node.getWidget();
298
		else if (node instanceof MGenericTile<?>) {
298
			ctrl.setBounds(bounds);
299
		} else if (node instanceof MGenericTile<?>) {
299
			Rectangle newRect = new Rectangle(bounds.x, bounds.y, bounds.width,
300
			Rectangle newRect = new Rectangle(bounds.x, bounds.y, bounds.width,
300
					bounds.height);
301
					bounds.height);
301
			node.setWidget(newRect);
302
			node.setWidget(newRect);

Return to bug 317849