summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-05-19 21:39:46 +0000
committerSilenio Quarti <silenio>2005-05-19 21:39:46 +0000
commit07a8e97705800e7e9fcc192ef62ea167a83e9e02 (patch)
tree66bc5b6db0aae661d5b99638b864b18a62b10c49
parentc598ad18552509c399e996019eb299d5cce42e68 (diff)
downloadeclipse.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.java13
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;
}
}