]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed bug causing random number format exception
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 13:18:23 +0000 (13:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 13:18:23 +0000 (13:18 +0000)
svn changeset:6275/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Util.java

index 40312df17d5eaef6cdb2f739e127247bf38e8e8a..42d1f869bb8020a20cf1c86b32484cf4aedd26aa 100644 (file)
@@ -368,7 +368,7 @@ public class Util {
             return paddingBorderGuess;
         } else if (height.endsWith("px")) {
             int pixelHeight = Integer.parseInt(height.substring(0, height
-                    .length() - 3));
+                    .length() - 2));
             return setHeightExcludingPaddingAndBorder(widget.getElement(),
                     pixelHeight, paddingBorderGuess, false);
         } else {