StackPane has the following defects:

1. All measurement methods use raw insets rather than `snappedTopInset()`, 
`snappedLeftInset()`, etc.
2. `layoutChildren()` also uses raw insets and raw subtraction for the content 
rectangle.
3. Calculated totals and spans are not re-snapped after addition or subtraction.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - fix
 - tests

Changes: https://git.openjdk.org/jfx/pull/2266/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2266&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8390673
  Stats: 192 lines in 2 files changed: 157 ins; 5 del; 30 mod
  Patch: https://git.openjdk.org/jfx/pull/2266.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2266/head:pull/2266

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

Reply via email to