diff options
author | Grant Gayed <ggayed> | 2007-10-30 19:26:47 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2007-10-30 19:26:47 +0000 |
commit | 271bf8e8631934dbdf092a7f5d74accd534157b3 (patch) | |
tree | f39da465b5b4ac2f9396cf304f642635d8dd0d49 | |
parent | 6858e0619ec4553d451a7613e230f39ae4587066 (diff) | |
download | eclipse.platform.swt-271bf8e8631934dbdf092a7f5d74accd534157b3.tar.gz eclipse.platform.swt-271bf8e8631934dbdf092a7f5d74accd534157b3.tar.xz eclipse.platform.swt-271bf8e8631934dbdf092a7f5d74accd534157b3.zip |
204953
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index ad76bd0c99..b0775dc8bc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -883,6 +883,9 @@ public void setBackgroundMode (int mode) { } void setBounds (int x, int y, int width, int height, int flags, boolean defer) { + if (display.resizeCount > Display.RESIZE_LIMIT) { + defer = false; + } if (!defer && (state & CANVAS) != 0) { state &= ~RESIZE_OCCURRED | MOVE_OCCURRED; state |= RESIZE_DEFERRED | MOVE_DEFERRED; @@ -1009,11 +1012,12 @@ void setResizeChildren (boolean resize) { if (resize) { resizeChildren (); } else { - if (display.resizeCount < Display.RESIZE_LIMIT) { - int count = getChildrenCount (); - if (count > 1 && lpwp == null) { - lpwp = new WINDOWPOS [count]; - } + if (display.resizeCount > Display.RESIZE_LIMIT) { + return; + } + int count = getChildrenCount (); + if (count > 1 && lpwp == null) { + lpwp = new WINDOWPOS [count]; } } } |