From: Artur Signell Date: Thu, 3 Sep 2009 13:56:02 +0000 (+0000) Subject: Removed fix for #2004 - Fix broke hosted mode and a better one is included in GWT X-Git-Tag: 6.7.0.beta1~2526 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26635650ce15dfa3bfa8f23e1f86f857984f3395;p=vaadin-framework.git Removed fix for #2004 - Fix broke hosted mode and a better one is included in GWT svn changeset:8657/svn branch:6.1 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java index 466619c2b1..d107f519ed 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VOverlay.java @@ -42,7 +42,7 @@ public class VOverlay extends PopupPanel { /** * The HTML snippet that is used to render the actual shadow. In consists of * nine different DIV-elements with the following class names: - * + * *
      *   .v-shadow[-stylename]
      *   ----------------------------------------------
@@ -55,7 +55,7 @@ public class VOverlay extends PopupPanel {
      *   | .bottom-left  |  .bottom  |  .bottom-right |
      *   ----------------------------------------------
      * 
- * + * * See default theme 'shadow.css' for implementation example. */ private static final String SHADOW_HTML = "
"; @@ -100,7 +100,7 @@ public class VOverlay extends PopupPanel { /** * Set the z-index (visual stack position) for this overlay. - * + * * @param zIndex * The new z-index */ @@ -109,18 +109,6 @@ public class VOverlay extends PopupPanel { if (shadow != null) { DOM.setStyleAttribute(shadow, "zIndex", "" + zIndex); } - if (BrowserInfo.get().isIE6()) { - adjustIE6Frame(getElement(), zIndex - 1); - } - } - - /** - * Get the z-index (visual stack position) of this overlay. - * - * @return The z-index for this overlay. - */ - private int getZIndex() { - return Integer.parseInt(DOM.getStyleAttribute(getElement(), "zIndex")); } @Override @@ -142,9 +130,6 @@ public class VOverlay extends PopupPanel { updateShadowSizeAndPosition(1.0); } } - if (BrowserInfo.get().isIE6()) { - adjustIE6Frame(getElement(), getZIndex()); - } } @Override @@ -156,17 +141,6 @@ public class VOverlay extends PopupPanel { } } - /* - * Needed to position overlays on top of native SELECT elements in IE6. See - * bug #2004 - */ - private native void adjustIE6Frame(Element popup, int zindex) - /*-{ - // relies on PopupImplIE6 - if(popup.__frame) - popup.__frame.style.zIndex = zindex; - }-*/; - @Override public void setWidth(String width) { super.setWidth(width); @@ -187,7 +161,7 @@ public class VOverlay extends PopupPanel { * Sets the shadow style for this overlay. Will override any previous style * for the shadow. The default style name is defined by CLASSNAME_SHADOW. * The given style will be prefixed with CLASSNAME_SHADOW. - * + * * @param style * The new style name for the shadow element. Will be prefixed by * CLASSNAME_SHADOW, e.g. style=='foobar' -> actual style @@ -213,7 +187,7 @@ public class VOverlay extends PopupPanel { * be used to animate the shadow, using the 'progress' parameter (used to * animate the shadow in sync with GWT PopupPanel's default animation * 'PopupPanel.AnimationType.CENTER'). - * + * * @param progress * A value between 0.0 and 1.0, indicating the progress of the * animation (0=start, 1=end).