diff options
-rw-r--r-- | WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css | 7 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css b/WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css index 6ed04d8f06..ef8c15ac1e 100644 --- a/WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css +++ b/WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css @@ -1,3 +1,10 @@ +.v-orderedlayout, +.v-horizontallayout, +.v-verticallayout { + overflow: hidden; + position: relative; +} + .v-orderedlayout-margin-top, .v-horizontallayout-margin-top, .v-verticallayout-margin-top { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java index b656caf9dc..dd3cb41a13 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java @@ -6,7 +6,6 @@ package com.vaadin.terminal.gwt.client.ui; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Style; -import com.google.gwt.dom.client.Style.Overflow; import com.google.gwt.dom.client.Style.Position; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.ComplexPanel; @@ -23,10 +22,6 @@ public class VMeasuringOrderedLayout extends ComplexPanel { protected VMeasuringOrderedLayout(String className, boolean isVertical) { DivElement element = Document.get().createDivElement(); setElement(element); - // TODO These should actually be defined in css - Style style = element.getStyle(); - style.setOverflow(Overflow.HIDDEN); - style.setPosition(Position.RELATIVE); spacingMeasureElement = Document.get().createDivElement(); Style spacingStyle = spacingMeasureElement.getStyle(); |