getIndex replaced by findSeq in Seqpanel
[jalview.git] / 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