Bug 144489 TVT3.2:TCT781: pl: List is too narrow
OS : RHEL 3.1 Must fix or not a must fix: NO Build date: 0529 Component name: BIRT Blocking: NO Language: pl Bitmap Location: V:\defects\pl\.20.002210.jpg Tester Name: Marek Gaskiewicz Steps to recreate the problem: Click Window->Open Perspective->Other->Report Design Right click anywhere on the report design Select Style->New Style context menu Select Font Problem Description: The size list is too narrow. This article was reassigned from Category:''TVT/Testing''.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FontPreferencePage.java
updatePreview();
	}
	/**
	 * Updates sample text for preview according to the property change.
	 * 
	 */
	private void updatePreview() {
		if (sample != null) {
			String fontFamily = name.getValueForName(name.getComboBoxControl(
					null).getText());
			if (fontFamily == null) {
				fontFamily = "Times New Roman"; 
			}
			String familyValue = (String) DesignerConstants.familyMap
					.get(fontFamily);
			if (familyValue == null) {
				familyValue = fontFamily;
			}
			
			String fontSize = DesignChoiceConstants.FONT_SIZE_MEDIUM;
			int sizeValue = Integer.valueOf(
					(String) DesignerConstants.fontMap.get(fontSize))
					.intValue();
			if (size.InComboNamesList(size.getComboBoxControl(
					getFieldEditorParent()).getText())) {
				fontSize = size.getBoxValueForName(size.getComboBoxControl(
						getFieldEditorParent()).getText());
				if (DesignChoiceConstants.FONT_SIZE_LARGER.equals(fontSize)) {
					fontSize = DesignChoiceConstants.FONT_SIZE_LARGE;
				} else if (DesignChoiceConstants.FONT_SIZE_SMALLER