diff options
author | Veronika Irvine | 2004-11-09 20:39:50 +0000 |
---|---|---|
committer | Veronika Irvine | 2004-11-09 20:39:50 +0000 |
commit | 5ba0282f4f03b3b475267759c185cd213c01e046 (patch) | |
tree | 281bf66e6f6b431a71806bb8369e0c527858088b | |
parent | 5031e89b84cea3a085afa6d4253219a01dbda95b (diff) | |
download | eclipse.platform.swt-5ba0282f4f03b3b475267759c185cd213c01e046.tar.gz eclipse.platform.swt-5ba0282f4f03b3b475267759c185cd213c01e046.tar.xz eclipse.platform.swt-5ba0282f4f03b3b475267759c185cd213c01e046.zip |
fix calls to layout(false)
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java | 5 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java index 048a77552b..abedb92f14 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java @@ -917,7 +917,10 @@ int setBounds (int x, int y, int width, int height, boolean move, boolean resize if ((result & RESIZED) != 0) { resizeClientArea (width, height, false); if (events) sendEvent (SWT.Resize); - if (layout != null) layout (false); + if (layout != null) { + markLayout (false, false); + updateLayout (false); + } } return result; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java index e1613abc80..e865150ca9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java @@ -744,7 +744,10 @@ int Pt_CB_RESIZE (int widget, int info) { OS.PtGetResources (shellHandle, args.length / 3, args); resizeBounds (args [1], args [4]); sendEvent(SWT.Resize); - if (layout != null) layout (false); + if (layout != null) { + markLayout (false, false); + updateLayout (false); + } return OS.Pt_CONTINUE; } @@ -986,7 +989,10 @@ int setBounds (int x, int y, int width, int height, boolean move, boolean resize if (!sameExtent & resize) { resizeBounds (newArea.size_w, newArea.size_h); sendEvent(SWT.Resize); - if (layout != null) layout (false); + if (layout != null) { + markLayout (false, false); + updateLayout (false); + } } } |