jQuery best way to detect a parent elements edge
<p>I have dev'd up a little popover element inside a frame with the intention for this frame to sit within a facebook application. This means that the app is limited to 810px and there can be no bleed. In my application you can hover an element and that element will create a small popover with a slightly larger element and a call to action within it.</p>

<p>This however will not work as the bleed will cut the images off. So i'm toying with the idea of either detecting parent edges and offsetting or centering the popover in the apps window. Which do you think would be:</p>

<p>a) the best option
b) the quickest option
c) why</p>

<p>Really appreciate some opinions on this.</p>
