changeset 6349:89603b0381ec

RT-35602: [Pagination] Pagination setCurrentPageIndex behaves weirdly - no page numbers displayed
author jgiles
date Mon, 24 Feb 2014 10:21:46 +1300
parents 53fde3ac0336
children 1e1033a2eb1c
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java	Mon Feb 24 10:20:39 2014 +1300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/PaginationSkin.java	Mon Feb 24 10:21:46 2014 +1300
@@ -832,7 +832,6 @@
             for (int i = fromIndex; i <= toIndex; i++) {
                 IndicatorButton ib = new IndicatorButton(i);
                 ib.setMinSize(minButtonSize, minButtonSize);
-                ib.setPrefSize(minButtonSize, minButtonSize);
                 ib.setToggleGroup(indicatorButtons);
                 controlBox.getChildren().add(ib);
             }
--- a/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Mon Feb 24 10:20:39 2014 +1300
+++ b/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Mon Feb 24 10:21:46 2014 +1300
@@ -2157,7 +2157,7 @@
 }
 .pagination > .pagination-control > .control-box > .number-button {
     -fx-background-radius: 0;
-    -fx-padding: 0.166667em 0.25em 0.25em 0.333em;
+    -fx-padding: 0.166667em 0.333em 0.25em 0.333em;
     -fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
 }
 .pagination > .pagination-control > .control-box > .number-button:selected {