JAL-3518 corrected pulled up focusView() command
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 29 Jun 2020 10:04:05 +0000 (11:04 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 29 Jun 2020 10:04:05 +0000 (11:04 +0100)
src/jalview/gui/ChimeraViewFrame.java
src/jalview/jbgui/GStructureViewer.java

index 5fd185d..810f40d 100644 (file)
@@ -536,12 +536,6 @@ public class ChimeraViewFrame extends StructureViewerBase
   }
 
   @Override
-  protected void fitToWindow_actionPerformed()
-  {
-    jmb.focusView();
-  }
-
-  @Override
   public ViewerType getViewerType()
   {
     return ViewerType.CHIMERA;
index 73180ee..4e13032 100644 (file)
@@ -214,6 +214,7 @@ public abstract class GStructureViewer extends JInternalFrame
 
   protected void fitToWindow_actionPerformed()
   {
+    getBinding().focusView();
   }
 
   protected void highlightSelection_actionPerformed()