From: Jouni Koivuviita Date: Thu, 14 May 2009 10:49:31 +0000 (+0000) Subject: VScrollTable: scroll indicator now positioned just under the table header (top of... X-Git-Tag: 6.7.0.beta1~2891 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c47d2c69b5f6b74c18f584c632865474c171ab7a;p=vaadin-framework.git VScrollTable: scroll indicator now positioned just under the table header (top of table body). svn changeset:7795/svn branch:6.0 --- 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