X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FFeatureSettings.java;h=49f099625e7265cecfecc705a23eb6416badb05a;hb=425c3769b24f953eed5af873d0e832e76c4d9c3a;hp=f2f0943c083bae794d8a53e5eafc97d16e853e2b;hpb=7d36e036d2df33aa0c4fd12f55a822e9d6f17f50;p=jalview.git diff --git a/src/jalview/appletgui/FeatureSettings.java b/src/jalview/appletgui/FeatureSettings.java index f2f0943..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) @@ -490,6 +491,7 @@ public class FeatureSettings extends Panel implements ItemListener, public MyCheckbox(String label, boolean checked, boolean haslink) { super(label, checked); + FontMetrics fm = av.nullFrame.getFontMetrics(av.nullFrame.getFont()); stringWidth = fm.stringWidth(label); this.hasLink = haslink;