On Wed, 28 Oct 2026 17:39:04 GMT, Andy Goryachev <[email protected]> wrote:
>> Florian Kirmaier has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> JDK-8392158 Split a span's min among rows that don't exceed their share
>
> modules/javafx.graphics/src/main/java/javafx/scene/layout/GridPane.java line
> 1786:
>
>> 1784: if (isSnapToPixel()) {
>> 1785: areaW = ScaledMath.rint(areaW,
>> getSnapScaleX(this));
>> 1786: areaH = ScaledMath.rint(areaH,
>> getSnapScaleY(this));
>
> `.rint()` is probably incorrect here: size 50.25 at scale=1.0 will be
> measured at 51 pixels when computing the pref size, while the layout
> allocates 50. The comment applies to both `areaW` and `areaH`.
fixed
> modules/javafx.graphics/src/main/java/javafx/scene/layout/GridPane.java line
> 2057:
>
>> 2055: while (available != 0 && wasPositive == isPositive &&
>> adjusting.size() > 0) {
>> 2056: if (!handleRemainder) {
>> 2057: final double pixels = isSnapToPixel() ?
>> Math.rint(available / pixelSize) : available;
>
> possible regression:
> - scale=1, no gaps
> - first row set at 10.5, second grow ALWAYS
> - two children, min height 0, pref=20
> - resize grid to 32
fixed
> modules/javafx.graphics/src/main/java/javafx/scene/layout/GridPane.java line
> 2686:
>
>> 2684: }
>> 2685: } while (changed && count > 0);
>> 2686:
>
> trailing whitespace
fixed
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2312#discussion_r4680249831
PR Review Comment: https://git.openjdk.org/jfx/pull/2312#discussion_r4680246214
PR Review Comment: https://git.openjdk.org/jfx/pull/2312#discussion_r4680248316