]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed setting height for windows
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 1 Feb 2008 12:04:44 +0000 (12:04 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 1 Feb 2008 12:04:44 +0000 (12:04 +0000)
svn changeset:3700/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IWindow.java

index d64c8e8f0105ef5850a57d1d8d0bb74000384838..fa660f5df779a2df069e9ddf9d59f2d8e424d4d5 100644 (file)
@@ -415,9 +415,15 @@ public class IWindow extends PopupPanel implements Paintable, ScrollListener {
     }
 
     public void setWidth(String width) {
-        DOM.setStyleAttribute(getElement(), "width", (Integer.parseInt(width
-                .substring(0, width.length() - 2)) + BORDER_WIDTH_HORIZONTAL)
-                + "px");
+        if (!"".equals(width)) {
+            DOM
+                    .setStyleAttribute(
+                            getElement(),
+                            "width",
+                            (Integer.parseInt(width.substring(0,
+                                    width.length() - 2)) + BORDER_WIDTH_HORIZONTAL)
+                                    + "px");
+        }
     }
 
     private void onHeaderEvent(Event event) {