]> source.dussan.org Git - vaadin-framework.git/commitdiff
Set some basic styles in css (#8313)
authorLeif Åstrand <leif@vaadin.com>
Fri, 10 Feb 2012 08:32:20 +0000 (10:32 +0200)
committerLeif Åstrand <leif@vaadin.com>
Fri, 10 Feb 2012 08:32:20 +0000 (10:32 +0200)
WebContent/VAADIN/themes/base/orderedlayout/orderedlayout.css
src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java

index 6ed04d8f06161f0933de3213abf510b78daf8972..ef8c15ac1e49ff482edb0b06830712898ab5bbc1 100644 (file)
@@ -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 {
index b656caf9dc3ec275c30eb843282b7707924f2622..dd3cb41a13f4ba787f732aa5d1422efabcf9305d 100644 (file)
@@ -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();