Don't break layout on 'Paste'

This commit is contained in:
Vassiliy.Kudryashov
2017-06-16 00:03:38 +03:00
parent 6ee8e6157f
commit ac9a066654
@@ -234,6 +234,8 @@ public class SearchTextArea extends NonOpaquePanel implements PropertyChangeList
myIconsPanel.add(myNewLineButton);
}
myIconsPanel.setBorder(myHelper.getIconsPanelBorder(rows));
myIconsPanel.revalidate();
myIconsPanel.repaint();
myScrollPane.setHorizontalScrollBarPolicy(multiline ? HORIZONTAL_SCROLLBAR_AS_NEEDED : HORIZONTAL_SCROLLBAR_NEVER);
myScrollPane.setVerticalScrollBarPolicy(multiline ? VERTICAL_SCROLLBAR_AS_NEEDED : VERTICAL_SCROLLBAR_NEVER);
myScrollPane.revalidate();