Bug 339737 Switching perspectives has trim layout issues
If you switch to a perspective that has minimized stacks the vertical trim bar's layout is not correct...
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/MinMaxAddon.java
context.get(IPresentationEngine.class).createGui(parent, winShell,
						window.getContext());
			}
			trimStack.setToBeRendered(true);
		}
		
		CTabFolder ctf = (CTabFolder) stack.getWidget();
		if (ctf != null) {
			ctf.setMinimizeVisible(false);
			ctf.setMaximizeVisible(true);
			ctf.setMaximized(true);
		}
		stack.setVisible(false);
	}
	void restoreStack(MPartStack stack) {
		MWindow window = modelService.getTopLevelWindowFor(stack);
		String trimId = stack.getElementId() + getMinimizedStackSuffix(stack);
		MToolControl trimStack = (MToolControl) modelService.find(trimId, window);
		TrimStack ts = (TrimStack) trimStack.getObject();
		ts.restoreStack();
		stack.getTags().remove(MINIMIZED_BY_ZOOM);
		
		CTabFolder ctf = (CTabFolder) stack.getWidget();
		if (ctf != null) {
			ctf.setMinimizeVisible(true);
			ctf.setMaximizeVisible(false);
			ctf.setMaximized(false);
		}
	}