]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge of (#10200) to Vaadin 7. 09/609/1
authorAnna Koskinen <anna@vaadin.com>
Wed, 9 Jan 2013 14:32:13 +0000 (16:32 +0200)
committerAnna Koskinen <anna@vaadin.com>
Wed, 9 Jan 2013 14:32:13 +0000 (16:32 +0200)
DnD broken in IE8 when Vaadin app running in iframe.

Change-Id: Ie1e8655729bc5e83e868fb31d4e897ce41f13f92

client/src/com/vaadin/client/Util.java

index 6947b14d9dfcd752fa2cf3aae58243944e7d1ff3..a29398706da8fce807b1ce801575841462ea5f6e 100644 (file)
@@ -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;
         }