summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-01-09 16:13:16 +0000
committerVaadin Code Review <review@vaadin.com>2013-01-09 16:13:16 +0000
commit909404f80d14bee2b070bb0d799fd83b60071ec2 (patch)
treeadc71df62e7a680feb48809a98a94f9697a4ccff /client
parent5e27f326fdb4470d4ffe601e1cd4c9a7eae501d7 (diff)
parent039c201b825121fe5e068bf6e127eb2ee6f8e489 (diff)
downloadvaadin-framework-909404f80d14bee2b070bb0d799fd83b60071ec2.tar.gz
vaadin-framework-909404f80d14bee2b070bb0d799fd83b60071ec2.zip
Merge "Merge of (#10200) to Vaadin 7."
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/Util.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/Util.java b/client/src/com/vaadin/client/Util.java
index 6947b14d9d..a29398706d 100644
--- a/client/src/com/vaadin/client/Util.java
+++ b/client/src/com/vaadin/client/Util.java
@@ -77,6 +77,8 @@ public class Util {
public static native Element getElementFromPoint(int clientX, int clientY)
/*-{
var el = $wnd.document.elementFromPoint(clientX, clientY);
+ // Call elementFromPoint two times to make sure IE8 also returns something sensible if the application is running in an iframe
+ el = $wnd.document.elementFromPoint(clientX, clientY);
if(el != null && el.nodeType == 3) {
el = el.parentNode;
}