jQuery and iframes and weird positioning: is there a workaround?

前端 未结 2 683
北海茫月
北海茫月 2020-12-21 00:56

I\'ve got a draggable thing outside an iframe, and a droppable target inside it. Here I\'ve shown the iframe as containing a snippet of the HTML that is loaded by its src at

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 01:19

    It was asked a long ago, but digging SO I found a GIST where people solved this problem by overwriting the default behavior of $.ui.ddmanager.prepareOffsets.

    You can find the working code here: https://gist.github.com/gujiman/581a3cee1dbf4beafccb

提交回复
热议问题