From d8100724d7b7dc9ff1f83f7dffc65bb650856c94 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 3 Apr 2019 16:43:19 +0100 Subject: [PATCH] JAL-3021 show Sequence Details with cursor at top --- src/jalview/gui/CutAndPasteHtmlTransfer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jalview/gui/CutAndPasteHtmlTransfer.java b/src/jalview/gui/CutAndPasteHtmlTransfer.java index 2e51bce..1d7d1c9 100644 --- a/src/jalview/gui/CutAndPasteHtmlTransfer.java +++ b/src/jalview/gui/CutAndPasteHtmlTransfer.java @@ -143,6 +143,7 @@ public class CutAndPasteHtmlTransfer extends GCutAndPasteHtmlTransfer { textarea.setDocument(textarea.getEditorKit().createDefaultDocument()); textarea.setText(text); + textarea.setCaretPosition(0); } @Override -- 1.7.10.2