From 226205d89f35da4de7d6936c3dd8b24a69ef8fda Mon Sep 17 00:00:00 2001 From: "Vassiliy.Kudryashov" Date: Tue, 7 Mar 2017 18:41:52 +0300 Subject: [PATCH] IDEA-169030 Find in Path popup: make all sides and corners resizable and increase drag area --- .../src/com/intellij/find/impl/FindPopupPanel.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java b/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java index f2995a8a2108..601889c37da9 100644 --- a/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java +++ b/platform/lang-impl/src/com/intellij/find/impl/FindPopupPanel.java @@ -162,6 +162,7 @@ public class FindPopupPanel extends JBPanel implements FindUI { final ComponentPopupBuilder builder = JBPopupFactory.getInstance().createComponentPopupBuilder(this, mySearchComponent); myBalloon = builder .setProject(myHelper.getProject()) + .setMovable(true) .setResizable(true) .setMayBeParent(true) .setCancelOnClickOutside(true) @@ -651,7 +652,7 @@ public class FindPopupPanel extends JBPanel implements FindUI { JPanel scopesPanel = new JPanel(new MigLayout("flowx, gap 26, ins 0")); scopesPanel.add(myScopeSelectionToolbar.getComponent()); scopesPanel.add(myScopeDetailsPanel, "growx, pushx"); - setLayout(new MigLayout("flowx, ins 0, gap 0, fillx, hidemode 3")); + setLayout(new MigLayout("flowx, ins 4, gap 0, fillx, hidemode 3")); int cbGapLeft = myCbCaseSensitive.getInsets().left; int cbGapRight = myCbCaseSensitive.getInsets().right; String cbGap = cbGapLeft + cbGapRight < 16 ? "gapright " + (16 - cbGapLeft - cbGapRight) : ""; @@ -665,10 +666,10 @@ public class FindPopupPanel extends JBPanel implements FindUI { add(myFileMaskField, "gapright 16"); add(myFilterContextButton, "wrap"); add(mySearchTextArea, "pushx, growx, sx 10, gaptop 4, wrap"); - add(myReplaceTextArea, "pushx, growx, sx 10, wrap"); + add(myReplaceTextArea, "pushx, growx, sx 10, gaptop 4, wrap"); add(scopesPanel, "sx 10, pushx, growx, ax left, wrap, gaptop 4, gapbottom 4"); - add(splitter, "pushx, growx, growy, pushy, sx 10, wrap, pad 0 -4 0 4"); - add(bottomPanel, "pushx, growx, dock south, sx 10, pad 0 -4 0 4"); + add(splitter, "pushx, growx, growy, pushy, sx 10, wrap, pad -4 -4 4 4"); + add(bottomPanel, "pushx, growx, dock south, sx 10"); MnemonicHelper.init(this); setFocusCycleRoot(true);