On Wed, 19 Aug 2026 01:10:25 GMT, Michael Strauß <[email protected]> wrote:

> AnchorPane's measurement and layout calculations are not correct when 
> pixel-snapping is enabled. The following problems are fixed in this PR:
> 
> * Stretched sizes and right/bottom positions are not snapped:
>    `computeChildWidth`/`computeChildHeight` subtract anchors and insets from 
> raw `getWidth()`/`getHeight()`, while `layoutChildren()` passes those values 
> directly to `resizeRelocate`.
> * Content-biased measurement and layout use different dependent dimensions:
>    `computeWidth()` passes `fillHeight=false`, while layout eventually uses 
> `fillHeight=true`
> * Result of snapped calculations is not re-snapped.
> * Anchors use `snapPositionX/Y`. However, anchors are empty space and should 
> use `snapSpaceX/Y`.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jfx/pull/2264

Reply via email to