From: gmungoc Date: Mon, 29 Jun 2020 10:04:05 +0000 (+0100) Subject: JAL-3518 corrected pulled up focusView() command X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~37 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c9de7d22f36c8866959c8c3ddbad72c2fa841f32;p=jalview.git JAL-3518 corrected pulled up focusView() command --- diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index 5fd185d..810f40d 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -536,12 +536,6 @@ public class ChimeraViewFrame extends StructureViewerBase } @Override - protected void fitToWindow_actionPerformed() - { - jmb.focusView(); - } - - @Override public ViewerType getViewerType() { return ViewerType.CHIMERA; diff --git a/src/jalview/jbgui/GStructureViewer.java b/src/jalview/jbgui/GStructureViewer.java index 73180ee..4e13032 100644 --- a/src/jalview/jbgui/GStructureViewer.java +++ b/src/jalview/jbgui/GStructureViewer.java @@ -214,6 +214,7 @@ public abstract class GStructureViewer extends JInternalFrame protected void fitToWindow_actionPerformed() { + getBinding().focusView(); } protected void highlightSelection_actionPerformed()