From 6fe4ea4995773069a184f5e4580ce0ced76e1563 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Thu, 22 Jun 2017 13:01:28 +0300 Subject: [PATCH] se: fix annoying 2px scrolling on mac --- .../src/com/intellij/ide/actions/SearchEverywhereAction.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java index 14b2c66976eb..624b0e8d4634 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/SearchEverywhereAction.java @@ -2243,12 +2243,11 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA final int extraHeight = pane.getHorizontalScrollBar().getHeight() + 1; sz = new Dimension(Math.min(getPopupMaxWidth(), Math.max(getField().getWidth(), sz.width + extraWidth)), Math.min(getPopupMaxWidth(), sz.height + extraHeight)); sz.width += 20; - sz.height+=2; } else { - sz.width+=2; - sz.height+=2; + sz.width += 2; } } + sz.height += 2; sz.width = Math.max(sz.width, myPopup.getSize().width); myPopup.setSize(sz); if (myActionEvent != null && myActionEvent.getInputEvent() == null) {