RFR: 8299348: Size-restricted window can be observed with incorrect dimensions
Michael Strauß
mstrauss at openjdk.org
Mon Dec 26 03:10:42 UTC 2022
On Windows, a `Stage` that is restricted by minimum and maximum sizes can briefly be observed to appear with incorrect dimensions when it is first shown. The root cause of this bug is that the native `WinWindow._setBounds` method doesn't respect min/max sizes when calculating the window rect.
Note to reviewers: I've removed the unused `GlassWindow::updateMinMaxSize` method as to not confuse readers where min-max handling actually happens.
-------------
Commit messages:
- Fixed min/max window size
- Failing system test
Changes: https://git.openjdk.org/jfx/pull/984/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=984&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8299348
Stats: 120 lines in 3 files changed: 93 ins; 25 del; 2 mod
Patch: https://git.openjdk.org/jfx/pull/984.diff
Fetch: git fetch https://git.openjdk.org/jfx pull/984/head:pull/984
PR: https://git.openjdk.org/jfx/pull/984
More information about the openjfx-dev
mailing list