From: Jouni Koivuviita Date: Mon, 14 Dec 2009 10:14:31 +0000 (+0000) Subject: Removed unnecessary "px" units after 0 widths and heights. X-Git-Tag: 6.7.0.beta1~2168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e04b4e1a2b9075b5cbad7554a482359ea6f5e87;p=vaadin-framework.git Removed unnecessary "px" units after 0 widths and heights. svn changeset:10276/svn branch:6.2 --- diff --git a/src/com/vaadin/terminal/gwt/client/VCaption.java b/src/com/vaadin/terminal/gwt/client/VCaption.java index 72d29071cd..201e1aaf87 100644 --- a/src/com/vaadin/terminal/gwt/client/VCaption.java +++ b/src/com/vaadin/terminal/gwt/client/VCaption.java @@ -92,8 +92,8 @@ public class VCaption extends HTML { if (uidl.hasAttribute(ATTRIBUTE_ICON)) { if (icon == null) { icon = new Icon(client); - icon.setWidth("0px"); - icon.setHeight("0px"); + icon.setWidth("0"); + icon.setHeight("0"); DOM.insertChild(getElement(), icon.getElement(), getInsertPosition(ATTRIBUTE_ICON)); @@ -176,8 +176,8 @@ public class VCaption extends HTML { if (clearElement == null) { clearElement = DOM.createDiv(); DOM.setStyleAttribute(clearElement, "clear", "both"); - DOM.setStyleAttribute(clearElement, "width", "0px"); - DOM.setStyleAttribute(clearElement, "height", "0px"); + DOM.setStyleAttribute(clearElement, "width", "0"); + DOM.setStyleAttribute(clearElement, "height", "0"); DOM.setStyleAttribute(clearElement, "overflow", "hidden"); DOM.appendChild(getElement(), clearElement); }