figure : set resize can change frame size 48/14348/2
Antoine ELIAS [Fri, 4 Apr 2014 14:51:52 +0000 (16:51 +0200)]
Change-Id: I6a27a90db965f7c27b8caf3acac6454888f90571

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabCommonPanel.java

index 04f426a..482d82d 100644 (file)
@@ -217,6 +217,10 @@ public class SwingScilabCommonPanel {
             }
             case __GO_RESIZE__:
                 component.getParentWindow().setResizable((Boolean) value);
+                //on some cases, set resizable can change frame size. ( L&F, Window Manager, ... )
+                //so force set of axes_size.
+                SwingScilabCommonPanel.update(component, __GO_AXES_SIZE__, GraphicController.getController().getProperty(component.getId(), __GO_AXES_SIZE__));
+
                 break;
             case __GO_LAYOUT__:
                 LayoutType newLayout = LayoutType.intToEnum((Integer) value);