Bug 342610 [Forms] Form heading wraps text unexpectedly
Build Identifier: 20100218-1602 The form heading unexpectedly wraps heading text. A code snippet will be attached that defines a basic editor with a short form heading text string. When the editor is first displayed, there is a generous amount of horizontal space, more than sufficient to display the entire string, however, the last word form heading text appears to be truncated. If the editor is resized horizontally (shrunk), the last word of the form heading text will appear on the second line of the header. Incidentally, some longer heading text strings do not exhibit this problem. Reproducible: Always Steps to Reproduce: Display the editor defined by the attached code snippet. The last word form heading text appears to be truncated. When the editor is resized horizontally (shrunk), the last word of the form heading text will appear on the second line of the header.
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/forms/widgets/ExpandableComposite.java
/**
	 * If this style is used, the control will be created in the expanded state.
	 * This state can later be changed programmatically or by the user if
	 * TWISTIE or TREE_NODE style is used.
	 */
	public static final int EXPANDED = 1 << 6;
	/**
	 * If this style is used, title bar decoration will be painted behind the
	 * text.
	 */
	public static final int TITLE_BAR = 1 << 8;
	/**
	 * If this style is used, a short version of the title bar decoration will
	 * be painted behind the text. This style is useful when a more descrete
	 * option is needed for the title bar.
	 * 
	 * @since 3.1
	 */
	public static final int SHORT_TITLE_BAR = 1 << 9;
	/**
	 * If this style is used, title will not be rendered.
	 */
	public static final int NO_TITLE = 1 << 12;
	/**
	 * By default, text client is right-aligned. If this style is used, it will
	 * be positioned after the text control and vertically centered with it.
	 */
	public static final int LEFT_TEXT_CLIENT_ALIGNMENT = 1 << 13;
	/**
	 * By default, a focus box is painted around the title when it receives focus.