git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
007eb4e
)
JAL-2778 replace setScrollValues call in AlignmentPanel::paintComponent
author
kiramt
<k.mourao@dundee.ac.uk>
Mon, 6 Nov 2017 10:37:48 +0000
(10:37 +0000)
committer
kiramt
<k.mourao@dundee.ac.uk>
Mon, 6 Nov 2017 10:37:48 +0000
(10:37 +0000)
src/jalview/gui/AlignmentPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignmentPanel.java
b/src/jalview/gui/AlignmentPanel.java
index
8d0fefb
..
ab6a781
100644
(file)
--- a/
src/jalview/gui/AlignmentPanel.java
+++ b/
src/jalview/gui/AlignmentPanel.java
@@
-877,6
+877,13
@@
public class AlignmentPanel extends GAlignmentPanel implements
Dimension d = getIdPanel().getIdCanvas().getPreferredSize();
idPanelHolder.setPreferredSize(d);
hscrollFillerPanel.setPreferredSize(new Dimension(d.width, 12));
+
+ /*
+ * set scroll bar positions - tried to remove but necessary for split panel to resize correctly
+ * though I still think this call should be elsewhere.
+ */
+ ViewportRanges ranges = av.getRanges();
+ setScrollValues(ranges.getStartRes(), ranges.getStartSeq());
}
/**