> 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: revert changes, use exact equals where possible ------------- Changes: - all: https://git.openjdk.org/jfx/pull/2264/files - new: https://git.openjdk.org/jfx/pull/2264/files/ea67d940..5f95bac9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=2264&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2264&range=00-01 Stats: 146 lines in 1 file changed: 22 ins; 36 del; 88 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
