6988168: Press the "Toggle Font" button.The size of the combo box didn't change.
authorrupashka
Wed, 02 Feb 2011 18:37:31 +0300
changeset 8143 1b0feb422660
parent 8142 df12f485c6bd
child 8144 e70d57808ef0
6988168: Press the "Toggle Font" button.The size of the combo box didn't change. Reviewed-by: alexp
jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java	Mon Jan 31 21:49:27 2011 +0300
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java	Wed Feb 02 18:37:31 2011 +0300
@@ -1721,6 +1721,7 @@
                         editor.setFont( comboBox.getFont() );
                     }
                     isMinimumSizeDirty = true;
+                    isDisplaySizeDirty = true;
                     comboBox.validate();
                 }
                 else if ( propertyName == JComponent.TOOL_TIP_TEXT_KEY ) {