mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 10:31:03 +00:00
Scroll to top in editors
This commit is contained in:
@@ -60,12 +60,14 @@ public class LineMarkedEditorPane extends UndoFixedEditorPane {
|
||||
public void setText(String t) {
|
||||
lastLine = -1;
|
||||
super.setText(t);
|
||||
setCaretPosition(0); //scroll to top
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setText(String t, String contentType) {
|
||||
lastLine = -1;
|
||||
super.setText(t, contentType);
|
||||
setCaretPosition(0); //scroll to top
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user