mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 23:08:42 +03:00
Drop shadows on Windows: fix location of light weight popup in case it has left or top drop shadow (issue #94)
This commit is contained in:
@@ -214,6 +214,13 @@ public class FlatPopupFactory
|
||||
dropShadowDelegate.show();
|
||||
|
||||
delegate.show();
|
||||
|
||||
// fix location of light weight popup in case it has left or top drop shadow
|
||||
if( lightComp != null ) {
|
||||
Insets insets = lightComp.getInsets();
|
||||
if( insets.left != 0 || insets.top != 0 )
|
||||
lightComp.setLocation( lightComp.getX() - insets.left, lightComp.getY() - insets.top );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user