Skip to main content

Search and Top Navigation

#6655 closed feature (wontfix)

Opened November 16, 2010 02:49AM UTC

Closed October 27, 2011 06:42PM UTC

Last modified October 11, 2012 09:15PM UTC

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:
Description

$.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>

Attachments (0)
Change History (4)

Changed November 16, 2010 01:44PM UTC by scottgonzalez comment:1

component: ui.coreui.position
summary: position fails to work on elements within an iframePosition: Allow positioning across iframes
type: bugfeature

Changed October 27, 2011 06:42PM UTC by scottgonzalez comment:2

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).

Changed January 05, 2012 12:05AM UTC by nielskuhnel comment:3

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.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted