Changeset 10665 in josm
- Timestamp:
- 2016-07-28T23:29:52+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextArea.java
r8291 r10665 6 6 7 7 import javax.swing.JTextArea; 8 import javax.swing.text.Caret; 9 import javax.swing.text.DefaultCaret; 8 10 import javax.swing.text.Document; 9 11 … … 88 90 TextContextualPopupMenu.enableMenuFor(this, true); 89 91 addFocusListener(this); 92 Caret c = getCaret(); 93 if (c instanceof DefaultCaret) { 94 // Prevent component to scroll down after setting large text, forcing users to initially scroll up 95 ((DefaultCaret) c).setUpdatePolicy(DefaultCaret.NEVER_UPDATE); 96 } 90 97 } 91 98
Note:
See TracChangeset
for help on using the changeset viewer.