Bug 318903 [UI] Search Bar and Perspective switcher should always be on the same line
Right now if you resize the window it will first place the Perspetive Switcher onto the second line (where it is *not* left-aligned because the spacer control is still on the first line...).
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/TrimBarLayout.java
if (curSpacer != null) {
						spacers.add(curSpacer);
						curLine.add(curSpacer);
					}
					curLine.add(ctrl);
					spaceLeft -= major;
				}
				curSpacer = null;
			}
			tileLine(curLine, spacers, curMinor, maxMinor, spaceLeft);
		} finally {
			composite.setRedraw(true);
		}
	}
	private void tileLine(List<Control> curLine, List<Control> spacers,
			int curMinor, int maxMinor, int spaceLeft) {
		
		
		int[] spacerWidths = new int[spacers.size()];
		if (spacers.size() > 0) {
			int spacerWidth = spaceLeft / spacers.size();
			for (int count = 0; count < spacers.size(); count++) {
				if (spaceLeft < spacerWidth)
					spacerWidth = spaceLeft;
				spaceLeft -= spacerWidth;
				spacerWidths[count] = spacerWidth;
			}
		}
		
		int majorPos = horizontal ? marginLeft : marginTop;