> 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).

Michael Strauß has updated the pull request incrementally with one additional 
commit since the last revision:

  clamp child width/height

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/2264/files
  - new: https://git.openjdk.org/jfx/pull/2264/files/5f95bac9..528de9dc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=2264&range=02
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2264&range=01-02

  Stats: 68 lines in 2 files changed: 66 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/2264.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2264/head:pull/2264

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

Reply via email to