]> source.dussan.org Git - vaadin-framework.git/commitdiff
VScrollTable: scroll indicator now positioned just under the table header (top of...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 14 May 2009 10:49:31 +0000 (10:49 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 14 May 2009 10:49:31 +0000 (10:49 +0000)
svn changeset:7795/svn branch:6.0

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 0be25810a7502e6956699ebea8d742e3cf109a70..9f840fadd92720124eab5ebdfba429be3ccaa7fb 100644 (file)
@@ -820,16 +820,19 @@ public class VScrollTable extends FlowPanel implements Table, ScrollListener {
         if (scrollPositionElement == null) {
             scrollPositionElement = DOM.createDiv();
             DOM.setElementProperty(scrollPositionElement, "className",
-                    "v-table-scrollposition");
+                    CLASSNAME + "-scrollposition");
+            DOM
+                    .setStyleAttribute(scrollPositionElement, "position",
+                            "absolute");
             DOM.appendChild(getElement(), scrollPositionElement);
         }
 
-        DOM.setStyleAttribute(scrollPositionElement, "position", "absolute");
         DOM.setStyleAttribute(scrollPositionElement, "marginLeft", (DOM
                 .getElementPropertyInt(getElement(), "offsetWidth") / 2 - 80)
                 + "px");
         DOM.setStyleAttribute(scrollPositionElement, "marginTop", -(DOM
-                .getElementPropertyInt(getElement(), "offsetHeight") - 2)
+                .getElementPropertyInt(bodyContainer.getElement(),
+                        "offsetHeight"))
                 + "px");
 
         // indexes go from 1-totalRows, as rowheaders in index-mode indicate