RFR: 8313424: JavaFX controls in the title bar [v65]
Michael Strauß
mstrauss at openjdk.org
Thu Apr 24 17:43:27 UTC 2025
On Thu, 24 Apr 2025 09:15:15 GMT, Markus Mack <mmack at openjdk.org> wrote:
> * When placing a MenuBar in the HeaderBar, dragging the window by clicking on the menu will open the menu and drag the window away from the opened window, which looks broken, and ComboBox and TextField don't work at all. While the fix is documented well (setting HeaderBar.draggable to false for those controls), maybe this should be set by default for all `Control` `Node`s? This would need additional documentation though.
This should not happen, as the `HeaderBar` documentation states:
The entire {@code HeaderBar} background is draggable by default, but its content is not.
Maybe you used a layout pane inside the `HeaderBar`, and set `HeaderBar.draggable = true` for the layout pane? This would then apply to the entire subtree of the pane, including the `MenuBar`.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2828378638
More information about the openjfx-dev
mailing list