atomsGui: wait end of data init to set resize function 07/14107/2
Antoine ELIAS [Mon, 24 Mar 2014 09:11:48 +0000 (10:11 +0100)]
Change-Id: I3776b1486b6d848e1da4ccb3f6bd6aed62c99090

scilab/modules/atoms/gui/atomsGui.xml
scilab/modules/atoms/macros/atoms_gui/atomsGui.sci

index bfd8fcf..4b40490 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <scilabgui usedeprecatedskin="off" version="1.0">
-    <figure axes_size="900,600" background="33" default_axes="off" dockable="off" figure_position="0,0" figure_size="916,665" icon="software-update-notinstalled" infobar_visible="off" layout="3" menubar="0" resizefcn="atomsResize" tag="atomsFigure" toolbar="0" toolbar_visible="off" visible="off">
+    <figure axes_size="900,600" background="33" default_axes="off" dockable="off" figure_position="0,0" icon="software-update-notinstalled" infobar_visible="off" layout="3" menubar="0" tag="atomsFigure" toolbar="0" toolbar_visible="off" visible="off">
         <frame backgroundcolor="1.0,1.0,1.0" borderoptpadding="5,5" layout="3" tag="MainFrame">
             <frame backgroundcolor="1.0,1.0,1.0" borderposition="0" borderpreferredsize="0,40" layout="3" margins="5.0,5.0,5.0,5.0" tag="msgFrame">
                 <border style="titled" title="">
index 05a303e..0cdfbb0 100644 (file)
@@ -27,7 +27,6 @@ function atomsGui()
             "default_axes", "off", ...
             "tag", "atomsFigure", ...
             "visible", "off", ...
-            "resizefcn", "atomsResize", ...
             "icon", "software-update-notinstalled", ...
             "position", [0 0 figwidth figheight], ...
             "layout", "border");
@@ -239,6 +238,7 @@ function atomsGui()
     set("HomeListbox", "String", HomeElements("items_str"));
     set("HomeListbox", "UserData", HomeElements("items_mat"));
     set("atomsFigure", "visible", "on");
+    set("atomsFigure", "resizefcn", "atomsResize");
 
     atomsResize();
 endfunction