changeset 7225:7cbfb3021f40

RT-37392: TableView's columns auto-resize if a CSS class is added/removed on MouseEnter/Exit of a wrapping pane
author jgiles
date Tue, 10 Jun 2014 16:07:31 +1200
parents 60c28b4342a4
children 619b6657bf41
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Tue Jun 10 12:56:40 2014 +1200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Tue Jun 10 16:07:31 2014 +1200
@@ -513,13 +513,6 @@
         label.setGraphic(column.getGraphic());
         label.setVisible(column.isVisible());
 
-        label.fontProperty().addListener((o, old, newValue) -> {
-            // The font has changed (probably due to CSS being applied), so we
-            // need to re-run the column resizing algorithm to ensure columns
-            // fit nicely based on their content and their header
-            doColumnAutoSize(column, 30);
-        });
-
         // ---- container for the sort arrow (which is not supported on embedded
         // platforms)
         if (isSortingEnabled()) {