From: gmungoc Date: Mon, 6 Jul 2015 09:20:56 +0000 (+0100) Subject: JAL-1799 tweaked calculation for applet, now showing 2 not 3 seqs X-Git-Tag: Release_2_10_0~589 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8ac8932e2b255ffdd5513551eac426ead40137a7;p=jalview.git JAL-1799 tweaked calculation for applet, now showing 2 not 3 seqs --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index f321581..463c6c3 100644 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -564,11 +564,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener, int mheight = annotationHeight; Dimension d = sequenceHolderPanel.getSize(); - int availableHeight = d.height - scalePanelHolder.getSize().height; - if (hscroll.isVisible()) - { - availableHeight -= hscroll.getPreferredSize().height; - } + int availableHeight = d.height - scalePanelHolder.getHeight(); if (adjustPanelHeight) {