From: jprocter Date: Wed, 19 Sep 2012 12:16:05 +0000 (+0100) Subject: JAL-1170 column and row positions confused in implementation of scrollTo API methods X-Git-Tag: Jalview_2_9~308 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bce28a70c870ff1283a8dd2720a7da69203039f0;p=jalview.git JAL-1170 column and row positions confused in implementation of scrollTo API methods --- 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); } }