no around border ins editor
authorKirill Kalishev <kirill.kalishev@jetbrains.com>
Fri, 2 Jul 2010 11:46:24 +0000 (15:46 +0400)
committerKirill Kalishev <kirill.kalishev@jetbrains.com>
Fri, 2 Jul 2010 11:46:24 +0000 (15:46 +0400)
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java

index ffe3b12fd5dee08532bf26b551a812ff1f336091..daea7b8b82922da3924a8d92b6233c598b7acef9 100644 (file)
@@ -76,6 +76,7 @@ import org.jetbrains.annotations.Nullable;
 
 import javax.swing.*;
 import javax.swing.Timer;
+import javax.swing.border.EmptyBorder;
 import javax.swing.plaf.ScrollBarUI;
 import javax.swing.plaf.basic.BasicScrollBarUI;
 import java.awt.*;
@@ -4680,6 +4681,12 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
   }
 
   private class MyScrollPane extends JBScrollPane {
+
+
+    private MyScrollPane() {
+      setViewportBorder(new EmptyBorder(0, 0, 0, 0));
+    }
+
     protected void processMouseWheelEvent(MouseWheelEvent e) {
       if (mySettings.isWheelFontChangeEnabled()) {
         boolean changeFontSize = SystemInfo.isMac