Check height of featurePanel, not this for mousepresses
authoramwaterhouse <Andrew Waterhouse>
Fri, 28 Jul 2006 13:26:41 +0000 (13:26 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 28 Jul 2006 13:26:41 +0000 (13:26 +0000)
src/jalview/appletgui/FeatureSettings.java

index a733e24..49f0996 100755 (executable)
@@ -403,8 +403,9 @@ public class FeatureSettings extends Panel implements ItemListener,
 \r
     int height = evt.getY()+evt.getComponent().getLocation().y;\r
 \r
-    if(height > this.getSize().height)\r
+    if(height > featurePanel.getSize().height)\r
      {\r
+\r
        comp = featurePanel.getComponent(featurePanel.getComponentCount()-1);\r
      }\r
      else if(height < 0)\r