Hey guys, long time no talk. I've got what I hope will be a simple
question, been trying to wrap my brain around this for a while and
only coming up with blanks.

Here's the deal: I have some fixed-height content with overflow set to
scroll. In the scroll box there are links which when clicked, a menu
is shown just under the link. The menu is positioned absolutely and
WRT to dom order, it is the first thing in the markup, so in other
words the absolutely positioned menu is NOT inside the scrollable
content. The reason the menu is not inside the scroll content is so
that it will appear above all other content, including the right
scroll bar.

Everything works fine as long as the scroll content is not scrolled,
once I start scrolling, the cumulative offset used to calculate the
position of the menu is unreliable.

I've tried messing with the other offset methods, but none seem to
return what I want. I've also tried combining the
cumulativeScrollOffset of the link with the scrollTop of the
scrollable div, along with the cumulativeOffset of the scrollable div,
but could not get it to work.

It's better if I just show an example:
http://sandbox.enjoybeing.net/absolute-above-scrolled.html

If you click a link when the container is not scrolled, the menu is
displayed in the right spot, but as soon as you scroll the div,
everything is wrong.

What's do I need to do here to position this sucker correctly?

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to