From c47d2c69b5f6b74c18f584c632865474c171ab7a Mon Sep 17 00:00:00 2001 From: Jouni Koivuviita Date: Thu, 14 May 2009 10:49:31 +0000 Subject: [PATCH] VScrollTable: scroll indicator now positioned just under the table header (top of table body). svn changeset:7795/svn branch:6.0 --- src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 0be25810a7..9f840fadd9 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -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 -- 2.39.5