changeset 3999:39ed875879a8

Backing out patch for RT-28337: Regression : many controls cannot be resized. This is no longer necessary after the recent requestLayout() optimisations.
author jgiles
date Tue, 18 Jun 2013 09:24:30 +1200
parents 4745de498683
children c879a1c4c77e
files javafx-ui-controls/src/javafx/scene/control/SkinBase.java
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/SkinBase.java	Mon Jun 17 15:03:39 2013 +1200
+++ b/javafx-ui-controls/src/javafx/scene/control/SkinBase.java	Tue Jun 18 09:24:30 2013 +1200
@@ -113,15 +113,6 @@
         
         // Default behavior for controls is to consume all mouse events
         consumeMouseEvents(true);
-        
-        // RT-28337: request layout on prefWidth / prefHeight changes
-        InvalidationListener prefSizeListener = new InvalidationListener() {
-            @Override public void invalidated(Observable o) {
-                control.requestLayout();
-            }
-        };
-        this.control.prefWidthProperty().addListener(prefSizeListener);
-        this.control.prefHeightProperty().addListener(prefSizeListener);
     }