From dc802c043ead819a7ce6cf39812221565fee3524 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 28 Jul 2006 13:26:41 +0000 Subject: [PATCH] Check height of featurePanel, not this for mousepresses --- src/jalview/appletgui/FeatureSettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 1.7.10.2