aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-client
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-client')
-rw-r--r--compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java
index 36b1468bbd..4b0a52c1bd 100644
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VScrollTable.java
@@ -3931,10 +3931,12 @@ public class VScrollTable extends FlowPanel
public void onBrowserEvent(Event event) {
if (enabled) {
if (event.getEventTarget().cast() == columnSelector) {
- final int left = DOM.getAbsoluteLeft(columnSelector);
- final int top = DOM.getAbsoluteTop(columnSelector)
+ WidgetUtil.TextRectangle clientRect = WidgetUtil
+ .getBoundingClientRect(columnSelector);
+ final int left = (int) clientRect.getLeft();
+ final int top = (int) (clientRect.getTop()
+ DOM.getElementPropertyInt(columnSelector,
- "offsetHeight");
+ "offsetHeight"));
client.getContextMenu().showAt(this, left, top);
}
}