diff options
author | Silenio Quarti <silenio> | 2006-03-23 21:52:18 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2006-03-23 21:52:18 +0000 |
commit | c2374aab17aae7f26d61327171ecfcbbd6ae5597 (patch) | |
tree | 4437c0ba96312c3e7c2c6cbac0052c9318d05a22 | |
parent | b4c8aae1f3bd9de3bb7cb0d1ec31a548dc3c52c5 (diff) | |
download | eclipse.platform.swt-c2374aab17aae7f26d61327171ecfcbbd6ae5597.tar.gz eclipse.platform.swt-c2374aab17aae7f26d61327171ecfcbbd6ae5597.tar.xz eclipse.platform.swt-c2374aab17aae7f26d61327171ecfcbbd6ae5597.zip |
124415
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java | 12 |
1 files changed, 12 insertions, 0 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 575e00f533..87493d2643 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 @@ -245,6 +245,18 @@ public Browser(Composite parent, int style) { } case SWT.Show: { /* + * Do not update size when it is not visible. Note that isVisible() + * cannot be used because SWT.Show is sent before the widget is + * actually visible. + */ + Shell shell = getShell(); + Composite parent = Browser.this; + while (parent != shell && (parent.getVisible() || parent == e.widget)) { + parent = parent.getParent(); + } + if (!(parent.getVisible() || parent == e.widget)) return; + + /* * Bug on Safari. The web view cannot be obscured by other views above it. * This problem is specified in the apple documentation for HiWebViewCreate. * The workaround is to hook Hide and Show events on the browser's parents |