changeset 3407:19e5eb12b536 8.0-b87

fix menubar indefinite growing issue.
author Paru Somashekar <parvathi.somashekar@oracle.com>
date Wed, 24 Apr 2013 22:14:24 +0100
parents f15dd25b19d0
children 12e165be2e39 6ad7872e953c 29391522888a
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java	Wed Apr 24 19:16:18 2013 +0100
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/MenuButtonSkinBase.java	Wed Apr 24 22:14:24 2013 +0100
@@ -230,6 +230,14 @@
      * Layout                                                                  *
      *                                                                         *
      **************************************************************************/
+    
+    @Override protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) {
+        return computePrefWidth(height, topInset, rightInset, bottomInset, leftInset);
+    }
+    
+    @Override protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
+        return computePrefHeight(width, topInset, rightInset, bottomInset, leftInset);
+    }
 
     @Override protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) {
         return leftInset