On Thu, 15 Oct 2026 17:51:05 GMT, Andy Goryachev <[email protected]> wrote:

>> Florian Kirmaier has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   JDK-8392158
>>   Don't round row/column sizes to whole pixels when snapToPixel is off.
>
> modules/javafx.graphics/src/main/java/javafx/scene/layout/GridPane.java line 
> 2314:
> 
>> 2312:                     final double change = Math.abs(limit) <= 
>> Math.abs(portion)? limit : portion;
>> 2313:                     widths.setSize(index, isSnapToPixel() ? 
>> ScaledMath.rint(widths.getSize(index) + change, getSnapScaleX(this)) : 
>> widths.getSize(index) + change);
>> 2314:                     available = isSnapToPixel() ? Math.rint((available 
>> - change) / pixelSize) * pixelSize : available - change;
> 
> same problem as with heights

I've added a lot of new tests and fixes.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2312#discussion_r4349226406

Reply via email to