From: amwaterhouse Date: Fri, 28 Jul 2006 13:26:41 +0000 (+0000) Subject: Check height of featurePanel, not this for mousepresses X-Git-Tag: Release_2_1~166 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dc802c043ead819a7ce6cf39812221565fee3524;p=jalview.git Check height of featurePanel, not this for mousepresses --- diff --git a/src/jalview/appletgui/FeatureSettings.java b/src/jalview/appletgui/FeatureSettings.java index a733e24..49f0996 100755 --- a/src/jalview/appletgui/FeatureSettings.java +++ b/src/jalview/appletgui/FeatureSettings.java @@ -403,8 +403,9 @@ public class FeatureSettings extends Panel implements ItemListener, int height = evt.getY()+evt.getComponent().getLocation().y; - if(height > this.getSize().height) + if(height > featurePanel.getSize().height) { + comp = featurePanel.getComponent(featurePanel.getComponentCount()-1); } else if(height < 0)