On Thu, 29 Oct 2026 14:36:48 GMT, Andy Goryachev <[email protected]> wrote:
>> Florian Kirmaier has updated the pull request incrementally with one >> additional commit since the last revision: >> >> JDK-8392158 JDK-8392158 Keep percentage rows/columns at their size when >> splitting a span's min > > modules/javafx.graphics/src/main/java/javafx/scene/layout/GridPane.java line > 2112: > >> 2110: final double right = snapSpaceX(getInsets().getRight()); >> 2111: final double hgaps = widths.computeGaps(0, widths.getLength()); >> 2112: final double contentWidth = (isSnapToPixel() ? >> ScaledMath.floor(width, getSnapScaleX(this)) : width) - left - right; > > flooring might be a problem here: > - scale 1, columns 70%,30% > - 2 children in each column with min=100, pref=20 > - autosize > the first column is sized to 99 > > similar issue on L1867 Added fix for that and test case. The computed min/pref size is now snapped to whole pixels. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2312#discussion_r4680172084
