From 8aa68d0642ccf38d8c971edb717982f6d509675f Mon Sep 17 00:00:00 2001 From: kiramt Date: Mon, 6 Nov 2017 10:37:48 +0000 Subject: [PATCH] JAL-2778 replace setScrollValues call in AlignmentPanel::paintComponent --- src/jalview/gui/AlignmentPanel.java | 7 +++++++ 1 file changed, 7 insertions(+) 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()); } /** -- 1.7.10.2