-
-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMenu submenu offset above parent #42
Comments
If thats acceptable and not an indicator of another border/inset issue with the default this can be closed. |
Yes, there should be at least 1px at each side. Unfortunately changing Better use following as workaround until it is fixed in FlatLaf: UIManager.put( "Menu.submenuPopupOffsetY", -1 ); BTW I see this issue only on macOS. On Windows it is fine.
You can either change the "arrow type" to "triangle" (see https://www.formdev.com/flatlaf/customizing/#arrow_type) or use the "Flat Darcula" or "Flat IntelliJ" themes. |
In .25 I see with default borders the alignment is fixed. If I use a custom inset though its off from the submenu to parent. I dont know why but these menus do feel cramped at the top and bottom as if they are cut off on Mac OS by default. Anyway as a default with no custom insets the bug is fixed. Just wanted to pass along that if you do use custom insets from UI defaults it does push off the submenu alignment even though they have the same insets. |
Yes, I also don't like the current look, but had not the time to improve it for 0.25 because NetBeans 11.3 merge window closes tomorrow and I wanted 0.25 to be in NetBeans. I'll improve this for 0.26 with 4-6px gap at top/bottom and 0-2px gap at left/right. I also consider to give the popup menus a slightly different color so that it is easier to distinguish from the underlying window (currently the popup background color is the same as the window/dialog background color). |
The improvement for the menus are now implemented in master branch. See change log for list of changes: Hope you like it 😄 |
Hey that looks good! |
fixed in 0.26 |
Is this offset of a submenu normal? This is in a JPopupMenu on macos.
I was expecting the submenu to be top aligned with its parent but its a few pixels higher. If there were cascading submenus this would keep going higher and higher I would think. Can this offset be removed?
I see theres not much custom code in the L&F menu UI so I guess maybe theres nothing to be done here.
The text was updated successfully, but these errors were encountered: