modules/controls/src/main/java/javafx/scene/control/DialogPane.java
Print this page
@@ -928,11 +928,11 @@
double minWidth = snappedLeftInset() +
(hasHeader() ? 0 : graphicMinWidth) +
Math.max(Math.max(headerMinWidth, expandableContentMinWidth), Math.max(contentMinWidth, buttonBarMinWidth)) +
snappedRightInset();
- return snapSize(minWidth);
+ return snapSizeX(minWidth);
}
/** {@inheritDoc} */
@Override protected double computeMinHeight(double width) {
final boolean hasHeader = hasHeader();
@@ -961,11 +961,11 @@
Math.max(graphicMinHeight, contentMinHeight) +
expandableContentMinHeight +
buttonBarMinHeight +
snappedBottomInset();
- return snapSize(minHeight);
+ return snapSizeY(minHeight);
}
/** {@inheritDoc} */
@Override protected double computePrefWidth(double height) {
double headerPrefWidth = hasHeader() ? getActualHeader().prefWidth(height) + 10 : 0;
@@ -982,11 +982,11 @@
double prefWidth = snappedLeftInset() +
(hasHeader() ? 0 : graphicPrefWidth) +
Math.max(Math.max(headerPrefWidth, expandableContentPrefWidth), Math.max(contentPrefWidth, buttonBarPrefWidth)) +
snappedRightInset();
- return snapSize(prefWidth);
+ return snapSizeX(prefWidth);
}
/** {@inheritDoc} */
@Override protected double computePrefHeight(double width) {
final boolean hasHeader = hasHeader();
@@ -1014,11 +1014,11 @@
Math.max(graphicPrefHeight, contentPrefHeight) +
expandableContentPrefHeight +
buttonBarPrefHeight +
snappedBottomInset();
- return snapSize(prefHeight);
+ return snapSizeY(prefHeight);
}
/**************************************************************************