From 6d1bc630a09f6fd1bd1a9c2cfa361d8b115fb6a9 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 14 May 2009 12:09:46 +0000 Subject: [PATCH] fixes #2930, IE8 does not accept null for zIndex style property svn changeset:7807/svn branch:6.0 --- .../terminal/gwt/client/ui/VAbsoluteLayout.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); -- 2.39.5