MenuButton arrow position
Werner Lehmann
lehmann at media-interactive.de
Mon Oct 29 05:29:01 PDT 2012
Hi Richard,
I filed a bug for this: http://javafx-jira.kenai.com/browse/RT-25879
Probably the arrow is positioned like this because it makes sense for
the SplitMenuButton. However, without a "split"... We could work around
it with some css. Not pretty but functional for now.
By the way, there is some curious difference to the ContextMenu
internally used by the MenuButton. In a JFXPanel, a ContextMenu does not
autoHide if the users click on some unrelated Swing component. With the
MenuButton context menu, autoHide works(*) (see also RT-19953). Any idea
why? I am hoping to get this for my own ContextMenu and other popups as
well...
Werner
(*) works to some extent, moving the JFrame from underneath the menu
still does not autoHide it but that is less important
On 26.10.2012 17:22, Richard Bair wrote:
> MenuButton does not play nice if the graphic is displayed TOP or
> BOTTOM:http://www.imagebam.com/image/8c4a8b216588054
>>
>> Usually the arrow button is located to the right of the button
>> text. Instead it is on the far right side, with too much gap in
>> between.
More information about the openjfx-dev
mailing list