diff options
author | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-14 10:49:31 +0000 |
---|---|---|
committer | Jouni Koivuviita <jouni.koivuviita@itmill.com> | 2009-05-14 10:49:31 +0000 |
commit | c47d2c69b5f6b74c18f584c632865474c171ab7a (patch) | |
tree | 30ea32a40d03191cd58fd391f8789ee6f1adaf82 | |
parent | 9f5a6f88cd0d31f157b12df85bac59763f465b37 (diff) | |
download | vaadin-framework-c47d2c69b5f6b74c18f584c632865474c171ab7a.tar.gz vaadin-framework-c47d2c69b5f6b74c18f584c632865474c171ab7a.zip |
VScrollTable: scroll indicator now positioned just under the table header (top of table body).
svn changeset:7795/svn branch:6.0
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 9 |
1 files 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 |