RFR: 8313424: JavaFX controls in the title bar [v71]
Michael Strauß
mstrauss at openjdk.org
Fri May 2 11:48:59 UTC 2025
On Fri, 2 May 2025 11:18:04 GMT, Markus Mack <mmack at openjdk.org> wrote:
> Would it be feasible to ensure the minium window width is large enough by default, and allowing to turn this off when manual clipping is implemented instead?
It's probably a bit hard with the API around `Stage.minWidth` and `Stage.minHeight`. Deriving a minimum size from the window content is probably easy (just measure the minimum size of the root node), but currently the stage doesn't reach into the scene graph to set its minimum size. The problem is also not exclusive to `HeaderBar`, as the window can currently be resized below the minimum size of the rest of the scene graph, too. Maybe we could have an option for `Stage` to always be large enough to accomodate the minimum scene graph size.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2847020509
More information about the openjfx-dev
mailing list