aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java9
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