mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06: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();
|
dropShadowDelegate.show();
|
||||||
|
|
||||||
delegate.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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user