From bce28a70c870ff1283a8dd2720a7da69203039f0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 19 Sep 2012 13:16:05 +0100 Subject: [PATCH] JAL-1170 column and row positions confused in implementation of scrollTo API methods --- src/jalview/appletgui/SeqPanel.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index b9c5cf0..744a941 100644 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -1780,7 +1780,7 @@ stretchGroup,av.getHiddenRepSequences()); row = row<0 ? ap.av.startSeq : row; column = column<0 ? ap.av.startRes : column; - ap.scrollTo(row, row, column, true, true); + ap.scrollTo(column, column, row, true, true); } /** * scroll to the given row - or nearest visible location @@ -1790,7 +1790,7 @@ stretchGroup,av.getHiddenRepSequences()); { row = row<0 ? ap.av.startSeq : row; - ap.scrollTo(row, row, ap.av.startRes, true, true); + ap.scrollTo(ap.av.startRes, ap.av.startRes, row, true, true); } /** * scroll to the given column - or nearest visible location @@ -1800,7 +1800,7 @@ stretchGroup,av.getHiddenRepSequences()); { column = column<0 ? ap.av.startRes : column; - ap.scrollTo(ap.av.startRes, ap.av.startRes, column, true, true); + ap.scrollTo( column, column, ap.av.startSeq, true, true); } } -- 1.7.10.2