Using "position" over an iframe element
I'm trying to position a dialog over an element within an iframe using $(el).position(). The dialog contents are appended to the main document body element, while the "of" target of the position command is contained within an iframe (same domain).
Using just $('.dialog-contents').position({my:xx,at:xx,of:'.iframe-element'}), I fail to get the desired results using either a selector or the actual jquery object for the "of" option.
Attempting to position the dialog using $('iframe-element').offset(), I have to add in the iframe location to the results of the offset call.
Am I doing something wrong, or am I to expect a certain level of cruft when traversing iframes?