]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed unnecessary "px" units after 0 widths and heights.
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 14 Dec 2009 10:14:31 +0000 (10:14 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Mon, 14 Dec 2009 10:14:31 +0000 (10:14 +0000)
svn changeset:10276/svn branch:6.2

src/com/vaadin/terminal/gwt/client/VCaption.java

index 72d29071cd502bccf32d2549b9c5fac08695d487..201e1aaf87a3f5bc31f09892e41a0df1ffeb0901 100644 (file)
@@ -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);
         }