changeset 101:35f9a4405120

RT-18280: [ComboBox] Dynamic element adding shifts index of currently selected element and changes it in combo box.
author Jonathan Giles
date Thu, 01 Dec 2011 11:21:08 +1000
parents bafb77d6c156
children 31fb596f444a
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Thu Dec 01 10:31:55 2011 +1000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/ComboBoxListViewSkin.java	Thu Dec 01 11:21:08 2011 +1000
@@ -257,6 +257,7 @@
                 int index = listView.getSelectionModel().getSelectedIndex();
                 comboBox.getSelectionModel().select(index);
                 comboBox.setValue(listView.getSelectionModel().getSelectedItem());
+                updateDisplayNode();
             }
         });