diff options
author | Jens Jansson <peppe@vaadin.com> | 2011-12-22 12:25:43 +0200 |
---|---|---|
committer | Jens Jansson <peppe@vaadin.com> | 2011-12-22 12:26:15 +0200 |
commit | 445765f58d8e70d4512948ec9d11a351e7ffe346 (patch) | |
tree | 1ee9baee209a07e446d0c010d55c8644f0a899d8 /src | |
parent | cc4c6b28f4d07d70913abe44149117f8dc343601 (diff) | |
download | vaadin-framework-445765f58d8e70d4512948ec9d11a351e7ffe346.tar.gz vaadin-framework-445765f58d8e70d4512948ec9d11a351e7ffe346.zip |
#8019 Switched AbsoluteLayout size units when unset from null to pixels as that is the default that has always been used.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/ui/AbsoluteLayout.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/vaadin/ui/AbsoluteLayout.java b/src/com/vaadin/ui/AbsoluteLayout.java index 3bea3b0847..d6f9897664 100644 --- a/src/com/vaadin/ui/AbsoluteLayout.java +++ b/src/com/vaadin/ui/AbsoluteLayout.java @@ -176,10 +176,10 @@ public class AbsoluteLayout extends AbstractLayout implements private Float bottomValue = null; private Float leftValue = null; - private Unit topUnits; - private Unit rightUnits; - private Unit bottomUnits; - private Unit leftUnits; + private Unit topUnits = Unit.PIXELS; + private Unit rightUnits = Unit.PIXELS; + private Unit bottomUnits = Unit.PIXELS; + private Unit leftUnits = Unit.PIXELS; /** * Sets the position attributes using CSS syntax. Attributes not @@ -193,7 +193,7 @@ public class AbsoluteLayout extends AbstractLayout implements */ public void setCSSString(String css) { topValue = rightValue = bottomValue = leftValue = null; - topUnits = rightUnits = bottomUnits = leftUnits = null; + topUnits = rightUnits = bottomUnits = leftUnits = Unit.PIXELS; zIndex = -1; if (css == null) { return; |