additional check to show EditorTextField border under Aqua LaF only if it isOneLineMode
authorAlexey Pegov <alexey.pegov@jetbrains.com>
Mon, 13 Sep 2010 12:28:27 +0000 (16:28 +0400)
committerAlexey Pegov <alexey.pegov@jetbrains.com>
Mon, 13 Sep 2010 12:28:27 +0000 (16:28 +0400)
platform/platform-impl/src/com/intellij/ui/EditorTextField.java

index 3fb57f84e26901df822c09c7e84714d55a21ffff..734e03178b66c5f37f20f82e36860b7d125a0162 100644 (file)
@@ -422,7 +422,7 @@ public class EditorTextField extends JPanel implements DocumentListener, TextCom
   }
 
   protected void updateBorder(@NotNull final EditorEx editor) {
-    if (UIUtil.isUnderAquaLookAndFeel()) {
+    if (UIUtil.isUnderAquaLookAndFeel() && editor.isOneLineMode()) {
       final Container parent = getParent();
       if (parent instanceof JTable || parent instanceof CellRendererPane) return;