Platform: OS X scrollbars (unnecessary resets of scrollbars in editor)

This commit is contained in:
Anton Makeev
2014-03-14 16:52:40 +01:00
parent cb0037f171
commit 1f162026e0
@@ -485,6 +485,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
myEditorComponent = new EditorComponentImpl(this);
myScrollPane = new MyScrollPane();
myVerticalScrollBar = (MyScrollBar)myScrollPane.getVerticalScrollBar();
myPanel = new JPanel();
myPanel.putClientProperty(OrphanGuardian.CLIENT_PROPERTY_KEY, new OrphanGuardian() {
@@ -499,7 +500,6 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
});
myHeaderPanel = new MyHeaderPanel();
myVerticalScrollBar = new MyScrollBar(Adjustable.VERTICAL);
myGutterComponent = new EditorGutterComponentImpl(this);
initComponent();
myScrollingModel = new ScrollingModelImpl(this);
@@ -809,7 +809,6 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
myGutterComponent.setOpaque(true);
myScrollPane.setVerticalScrollBar(myVerticalScrollBar);
myScrollPane.setViewportView(myEditorComponent);
//myScrollPane.setBorder(null);
myScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);