Image size must allow for scale height
authoramwaterhouse <Andrew Waterhouse>
Mon, 7 May 2007 13:59:56 +0000 (13:59 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 7 May 2007 13:59:56 +0000 (13:59 +0000)
src/jalview/gui/AlignmentPanel.java

index f6b56f9..b11838c 100755 (executable)
@@ -918,7 +918,8 @@ public class AlignmentPanel
       maxwidth = av.getColumnSelection().findColumnPosition(maxwidth);\r
     }\r
 \r
-    int height = ( (av.alignment.getHeight() + 1) * av.charHeight) + 30;\r
+    int height = ( (av.alignment.getHeight() + 1) * av.charHeight)\r
+        + scalePanel.getHeight();\r
     int width = getVisibleIdWidth() + (maxwidth * av.charWidth);\r
 \r
     if (av.getWrapAlignment())\r