This PR fixes the computeSize methods not considering the gap in some cases.
It also fixes a missed spot, in the previous PR for JDK-8092379. Each fix is covered by simple tests which fail before and work after the change. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8386590 Changes: https://git.openjdk.org/jfx/pull/2187/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2187&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8386590 Stats: 105 lines in 2 files changed: 79 ins; 8 del; 18 mod Patch: https://git.openjdk.org/jfx/pull/2187.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2187/head:pull/2187 PR: https://git.openjdk.org/jfx/pull/2187
