JAL-1799 tweaked calculation for applet, now showing 2 not 3 seqs
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 6 Jul 2015 09:20:56 +0000 (10:20 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 6 Jul 2015 09:20:56 +0000 (10:20 +0100)
src/jalview/appletgui/AlignmentPanel.java

index f321581..463c6c3 100644 (file)
@@ -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)
     {