--- old/modules/graphics/src/main/java/javafx/scene/layout/FlowPane.java 2016-04-05 16:34:04.000000000 -0700 +++ new/modules/graphics/src/main/java/javafx/scene/layout/FlowPane.java 2016-04-05 16:34:04.000000000 -0700 @@ -569,7 +569,7 @@ } } final Insets insets = getInsets(); - return insets.getLeft() + snapSize(maxPref) + insets.getRight(); + return insets.getLeft() + snapSizeX(maxPref) + insets.getRight(); } return computePrefWidth(height); } @@ -585,7 +585,7 @@ } } final Insets insets = getInsets(); - return insets.getTop() + snapSize(maxPref) + insets.getBottom(); + return insets.getTop() + snapSizeY(maxPref) + insets.getBottom(); } return computePrefHeight(width); } @@ -598,7 +598,7 @@ List hruns = getRuns(maxRunWidth); double w = computeContentWidth(hruns); w = getPrefWrapLength() > w ? getPrefWrapLength() : w; - return insets.getLeft() + snapSize(w) + insets.getRight(); + return insets.getLeft() + snapSizeX(w) + insets.getRight(); } else { // vertical double maxRunHeight = forHeight != -1? @@ -622,7 +622,7 @@ List vruns = getRuns(maxRunHeight); double h = computeContentHeight(vruns); h = getPrefWrapLength() > h ? getPrefWrapLength() : h; - return insets.getTop() + snapSize(h) + insets.getBottom(); + return insets.getTop() + snapSizeY(h) + insets.getBottom(); } } @@ -645,8 +645,8 @@ double runLength = 0; double runOffset = 0; Run run = new Run(); - double vgap = snapSpace(this.getVgap()); - double hgap = snapSpace(this.getHgap()); + double vgap = snapSpaceY(this.getVgap()); + double hgap = snapSpaceX(this.getHgap()); final List children = getChildren(); for (int i=0, size=children.size(); i rownodes = new ArrayList(); - run.width = (run.rects.size()-1)*snapSpace(getHgap()); + run.width = (run.rects.size()-1)*snapSpaceX(getHgap()); for (int i=0, max=run.rects.size(); i runs) { - double cwidth = getOrientation() == HORIZONTAL ? 0 : (runs.size()-1)*snapSpace(getHgap()); + double cwidth = getOrientation() == HORIZONTAL ? 0 : (runs.size()-1)*snapSpaceX(getHgap()); for (int i=0, max=runs.size(); i runs) { - double cheight = getOrientation() == VERTICAL ? 0 : (runs.size()-1)*snapSpace(getVgap()); + double cheight = getOrientation() == VERTICAL ? 0 : (runs.size()-1)*snapSpaceY(getVgap()); for (int i=0, max=runs.size(); i