mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Platform: OS X scrollbars (unnecessary resets of scrollbars in editor)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user