Opened 12 years ago

Closed 11 years ago

Last modified 10 years ago

#6655 closed feature (wontfix)

Position: Allow positioning across iframes

Reported by: twall Owned by:
Priority: minor Milestone:
Component: ui.position Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:


$.position fails to properly position when the target element is within an iframe. For instance, attempting to position an element adjacent to the #anchor div below will not work.

<iframe> <html><body> <div id=anchor>hello there</anchor> </body></html> </iframe>

Change History (4)

comment:1 Changed 12 years ago by Scott González

Component: ui.coreui.position
Summary: position fails to work on elements within an iframePosition: Allow positioning across iframes
Type: bugfeature

comment:2 Changed 11 years ago by Scott González

Resolution: wontfix
Status: newclosed

Cross iframe support isn't possible. We could support your specific use case, but it would be a lot of code and would be very inefficient (we'd have to check every iframe to see if it contains the element we're positioning against, since you can't walk up from the iframe's document).

comment:3 Changed 11 years ago by nielskuhnel

If it's not possible to walk up from iframe's document in all supported browsers couldn't you then provide an "inframe" option?

I would like to be able to use position() to add overlays to the content iframe of tinyMCE.

comment:4 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.