fixed bug causing random number format exception

svn changeset:6275/svn branch:trunk
This commit is contained in:
Matti Tahvonen 2008-12-18 13:18:23 +00:00
parent a8916f0385
commit 90a16cc1c2

View 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 {