diff options
author | Silenio Quarti <silenio> | 2005-05-19 21:39:46 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-05-19 21:39:46 +0000 |
commit | 07a8e97705800e7e9fcc192ef62ea167a83e9e02 (patch) | |
tree | 66bc5b6db0aae661d5b99638b864b18a62b10c49 | |
parent | c598ad18552509c399e996019eb299d5cce42e68 (diff) | |
download | eclipse.platform.swt-07a8e97705800e7e9fcc192ef62ea167a83e9e02.tar.gz eclipse.platform.swt-07a8e97705800e7e9fcc192ef62ea167a83e9e02.tar.xz eclipse.platform.swt-07a8e97705800e7e9fcc192ef62ea167a83e9e02.zip |
fix resizing of shell
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java index 4dacba3137..872d37d456 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java @@ -266,14 +266,13 @@ public Browser(Composite parent, int style) { */ if (bounds.width <= MIN_SIZE) bounds.width = MIN_SIZE; if (bounds.height <= MIN_SIZE) bounds.height = MIN_SIZE; + if (e.widget == getShell()) { + bounds.x++; + /* Note that the bounds needs change */ + OS.HIViewSetFrame(webViewHandle, bounds); + bounds.x--; + } OS.HIViewSetFrame(webViewHandle, bounds); - /* - * Bug on Webkit. Resizing a Cocoa WebView in a Carbon window does not - * redraw the new area of the WebView. The workaround is to call Display.update. - * That call invokes UpdateControls on the Carbon window and that causes the - * Cocoa view to redraw correctly. - */ - e.display.update(); break; } } |