summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-01-30 12:06:43 +0200
committerLeif Åstrand <leif@vaadin.com>2012-01-30 15:07:23 +0200
commit05d0de6d4a427a63befccf362af3d9451f4029ee (patch)
treebac5820e073878694557d83bf16e2cf07bca7fcc /src
parentbb8f5ac330fdc623576f21c20dd308fc7f239ad5 (diff)
downloadvaadin-framework-05d0de6d4a427a63befccf362af3d9451f4029ee.tar.gz
vaadin-framework-05d0de6d4a427a63befccf362af3d9451f4029ee.zip
#8019 Use Pixel unit for negative sizes
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/ui/AbstractComponent.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java
index 026b64299a..059076790b 100644
--- a/src/com/vaadin/ui/AbstractComponent.java
+++ b/src/com/vaadin/ui/AbstractComponent.java
@@ -1418,6 +1418,7 @@ public abstract class AbstractComponent implements Component, MethodEventSource
size = Float.parseFloat(matcher.group(1));
if (size < 0) {
size = -1;
+ unit = Unit.PIXELS;
} else {
String symbol = matcher.group(3);
unit = Unit.getUnitFromSymbol(symbol);