summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJens Jansson <peppe@vaadin.com>2011-12-22 12:25:43 +0200
committerJens Jansson <peppe@vaadin.com>2011-12-22 12:26:15 +0200
commit445765f58d8e70d4512948ec9d11a351e7ffe346 (patch)
tree1ee9baee209a07e446d0c010d55c8644f0a899d8 /src
parentcc4c6b28f4d07d70913abe44149117f8dc343601 (diff)
downloadvaadin-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.java10
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;