From 8ac8932e2b255ffdd5513551eac426ead40137a7 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 6 Jul 2015 10:20:56 +0100 Subject: [PATCH] JAL-1799 tweaked calculation for applet, now showing 2 not 3 seqs --- src/jalview/appletgui/AlignmentPanel.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) { -- 1.7.10.2