]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8019 Use Pixel unit for negative sizes
authorLeif Åstrand <leif@vaadin.com>
Mon, 30 Jan 2012 10:06:43 +0000 (12:06 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 30 Jan 2012 13:07:23 +0000 (15:07 +0200)
src/com/vaadin/ui/AbstractComponent.java

index 026b64299a3152fec242be105dd2825020d05b16..059076790b6f18041aa9d30e7c2a43b94a52dc01 100644 (file)
@@ -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);