changeset 4852:98073a78b861

RT-31857: DatePicker: "<" and ">" buttons for previous/next year are missing.
author leifs
date Fri, 30 Aug 2013 11:17:24 -0700
parents 16d1fc60bd6a
children 089d0e8cb4d6
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/DatePickerContent.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/DatePickerContent.java	Fri Aug 30 10:41:40 2013 -0700
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/DatePickerContent.java	Fri Aug 30 11:17:24 2013 -0700
@@ -738,6 +738,14 @@
             // focus month spinner (should not happen)
             backMonthButton.requestFocus();
         }
+
+        // RT-31857
+        if (backMonthButton.getWidth() == 0) {
+            backMonthButton.requestLayout();
+            forwardMonthButton.requestLayout();
+            backYearButton.requestLayout();
+            forwardYearButton.requestLayout();
+        }
     }
 
     protected void createDayCells() {