Integrated: 8371106: [macOS] Min/max window height is incorrect for EXTENDED StageStyle

Michael Strauß mstrauss at openjdk.org
Tue Nov 11 05:12:18 UTC 2025


On Mon, 10 Nov 2025 07:58:17 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> This patch fixes window size contraints for an `EXTENDED` stage. In contrast to the suggested workaround in the JBS ticket of querying the value of [`NSWindow.minSize`](https://developer.apple.com/documentation/appkit/nswindow/minsize?language=objc) to find out the added size for the toolbar, I've found it easier to set the [`NSWindow.contentMinSize`](https://developer.apple.com/documentation/appkit/nswindow/contentminsize?language=objc) property instead.
> 
> This is only done for `EXTENDED` stages, preserving the existing behavior for all other stage styles, and it works because extended stages use a full-size content view that covers the entire window. It also makes it unnecessary to take the toolbar height into consideration, which would be necessary if we used the `minSize` property instead.

This pull request has now been integrated.

Changeset: 013e55b1
Author:    Michael Strauß <mstrauss at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/013e55b1ba687d212185d00167f375b816faf8c5
Stats:     18 lines in 2 files changed: 15 ins; 0 del; 3 mod

8371106: [macOS] Min/max window height is incorrect for EXTENDED StageStyle

Reviewed-by: angorya, kcr

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

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


More information about the openjfx-dev mailing list