Validate Label after Size change to follow alignment. 86/13086/2
Bruno JOFRET [Wed, 6 Nov 2013 09:30:27 +0000 (10:30 +0100)]
Change-Id: I93be0359f64f3865d55d9734fdf5a81c83e8bc14

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/label/SwingScilabLabel.java

index 7d4b107..de81bcf 100644 (file)
@@ -181,6 +181,8 @@ public class SwingScilabLabel extends JScrollPane implements SwingViewObject, Si
      */
     public void setDims(Size newSize) {
         setSize(newSize.getWidth(), newSize.getHeight());
+        // Need validate to force alignement to be applyed
+        validate();
     }
 
     /**