From 285143b0a3c8055c3150060852826ec4dffc3ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Wed, 26 Feb 2014 19:55:53 +0100 Subject: [PATCH] Scroll to top in editors --- .../jpexs/decompiler/flash/gui/abc/LineMarkedEditorPane.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/abc/LineMarkedEditorPane.java b/trunk/src/com/jpexs/decompiler/flash/gui/abc/LineMarkedEditorPane.java index 8cfbd9502..4a9340b78 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/abc/LineMarkedEditorPane.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/abc/LineMarkedEditorPane.java @@ -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