call figure resize function with and without axes
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / graphicWindow / PanelLayout.java
index f2b7404..ffb6a71 100644 (file)
@@ -62,16 +62,6 @@ public class PanelLayout implements LayoutManager, Serializable {
                 parent.setComponentZOrder(child, parent.getComponentCount() - 1);
             }
 
-            Integer figureIdentifier = ((SwingScilabCanvas) parent).getFigure().getIdentifier();
-            String resizeFcn = (String) GraphicController.getController().getProperty(figureIdentifier, GraphicObjectProperties.__GO_RESIZEFCN__);
-            if (resizeFcn != null && !resizeFcn.equals("")) {
-                String resizeCommand = "if exists(\"gcbo\") then %oldgcbo = gcbo; end;"
-                                       + "gcbo = getcallbackobject(" + figureIdentifier + ");"
-                                       + resizeFcn
-                                       + ";if exists(\"%oldgcbo\") then gcbo = %oldgcbo; else clear gcbo; end;";
-                InterpreterManagement.requestScilabExec(resizeCommand);
-            }
-
             /* Here you can perform the layout of UI object. */
             if (child instanceof SwingViewObject) {
                 Integer id = ((SwingViewObject) child).getId();