mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 15:00:54 +03:00
Menu: no longer add 1px to bottom insets of JMenu contained in JMenuBar to fix vertical alignment of JMenu text with FlatTitlePane title text on Java 9+ on HiDPI screens (due to rounding)
(this extra 1px was actually not necessary)
This commit is contained in:
@@ -40,7 +40,7 @@ public class FlatMenuItemBorder
|
|||||||
if( c.getParent() instanceof JMenuBar ) {
|
if( c.getParent() instanceof JMenuBar ) {
|
||||||
insets.top = scale( menuBarItemMargins.top );
|
insets.top = scale( menuBarItemMargins.top );
|
||||||
insets.left = scale( menuBarItemMargins.left );
|
insets.left = scale( menuBarItemMargins.left );
|
||||||
insets.bottom = scale( menuBarItemMargins.bottom + 1 );
|
insets.bottom = scale( menuBarItemMargins.bottom );
|
||||||
insets.right = scale( menuBarItemMargins.right );
|
insets.right = scale( menuBarItemMargins.right );
|
||||||
return insets;
|
return insets;
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user