On Thu, 24 Apr 2025 17:40:38 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

> 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`.

Yes, the controls are in an `HBox` with `HeaderBar.draggable=true`. So this is 
working as documented in `HeaderBar.draggable`. I still wonder if there's 
something that can be done to prevent controls from being broken by becoming 
draggable, especially if this happens inadvertently by "inheriting" this bit 
from its container.

Some ideas:
1) Let every `Node` in the subtree inherit the draggable=true bit, except those 
that are `Control`s
2) Add code to all affected controls to make them work while being draggable
3) Prevent or ignore the draggable bit on all or all affected controls
4) Don't apply draggable=true to the sub-tree

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

PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2828487426

Reply via email to