From 8e04b4e1a2b9075b5cbad7554a482359ea6f5e87 Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Mon, 14 Dec 2009 10:14:31 +0000 Subject: [PATCH] Removed unnecessary "px" units after 0 widths and heights. svn changeset:10276/svn branch:6.2 --- src/com/vaadin/terminal/gwt/client/VCaption.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -- 2.39.5