summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-14 12:09:46 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2009-05-14 12:09:46 +0000
commit6d1bc630a09f6fd1bd1a9c2cfa361d8b115fb6a9 (patch)
treedeb93b0c6c4177404a7e7423ad2c9cd9c44205f2
parent1961060085b9ae08bc7bd455f1214842741bb4e5 (diff)
downloadvaadin-framework-6d1bc630a09f6fd1bd1a9c2cfa361d8b115fb6a9.tar.gz
vaadin-framework-6d1bc630a09f6fd1bd1a9c2cfa361d8b115fb6a9.zip
fixes #2930, IE8 does not accept null for zIndex style property
svn changeset:7807/svn branch:6.0
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
index a370909167..0e1f56039a 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
@@ -303,7 +303,16 @@ public class VAbsoluteLayout extends ComplexPanel implements Container {
}
// ensure ne values
Style style = getElement().getStyle();
- style.setProperty("zIndex", zIndex);
+ /*
+ * IE8 dies when nulling zIndex, even in IE7 mode. All other css
+ * properties (and even in older IE's) accept null values just
+ * fine. Assign empty string instead of null.
+ */
+ if (zIndex != null) {
+ style.setProperty("zIndex", zIndex);
+ } else {
+ style.setProperty("zIndex", "");
+ }
style.setProperty("top", top);
style.setProperty("left", left);
style.setProperty("right", right);