1.2ish awt methods
authorjprocter <Jim Procter>
Fri, 4 Feb 2011 12:04:46 +0000 (12:04 +0000)
committerjprocter <Jim Procter>
Fri, 4 Feb 2011 12:04:46 +0000 (12:04 +0000)
src/jalview/appletgui/AlignmentPanel.java
src/jalview/appletgui/AnnotationPanel.java

index 05ecdcc..5373894 100755 (executable)
@@ -848,9 +848,9 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
     }
     int mheight=height;
     // sets initial preferred height
-    if (height > alignFrame.getHeight() / 2)
+    if (height > alignFrame.getSize().height/ 2)
     {
-      height = alignFrame.getHeight() / 2;
+      height = alignFrame.getSize().height / 2;
     }
     apvscroll.setValues(apvscroll.getValue(), height, 0, mheight);
     annotationPanel.setScrollOffset(apvscroll.getValue());
index b09e9ef..fb7bce5 100755 (executable)
@@ -81,7 +81,7 @@ public class AnnotationPanel extends Panel implements AdjustmentListener,
     av = ap.av;
     setLayout(null);
     int height = adjustPanelHeight();
-    ap.apvscroll.setValues(0, getHeight(), 0, height);
+    ap.apvscroll.setValues(0, getSize().height, 0, height);
 
     addMouseMotionListener(this);