From 90be9689588012f64c889c2b74c52e0854e2b7fc Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Fri, 23 Jan 2015 20:38:35 +0100 Subject: [PATCH] action buttons top offset is too big on HiDPI devices --- .../platform-api/src/com/intellij/openapi/ui/DialogWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java index 9ad0896b5ad8..358816782299 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java @@ -482,7 +482,7 @@ public abstract class DialogWrapper { JPanel panel = new JPanel(new BorderLayout()); final JPanel lrButtonsPanel = new JPanel(new GridBagLayout()); - final Insets insets = SystemInfo.isMacOSLeopard ? JBUI.emptyInsets() : JBUI.insetsTop(8); + final Insets insets = SystemInfo.isMacOSLeopard ? JBUI.emptyInsets() : new Insets(8, 0, 0, 0); //don't wrap to JBInsets if (actions.length > 0 || leftSideActions.length > 0) { int gridX = 0;