diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java index 379bde2c..79d1375f 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatPopupFactory.java @@ -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