From: kiramt Date: Mon, 6 Nov 2017 10:37:48 +0000 (+0000) Subject: JAL-2778 replace setScrollValues call in AlignmentPanel::paintComponent X-Git-Tag: Release_2_10_4~67^2~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8aa68d0642ccf38d8c971edb717982f6d509675f;p=jalview.git JAL-2778 replace setScrollValues call in AlignmentPanel::paintComponent --- diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 8d0fefb..ab6a781 100644 --- 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()); } /**