mariux schrieb: > > > On Jul 20, 7:01 pm, Frederic Gaus <[EMAIL PROTECTED]> wrote: > >>>> I noticed yesterday, that Z-indexes are not observed when calculating >>>> cumulativeOffset. >>> Maybe I'm mising something, but what does a z-index have to do with where >>> the >>> element is positioned? It affects the depth but not the position right? >> It does affecting the position. Check this >> out:http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position > > in this selfhtml example z-index is just affecting the depth, as > michael mentioned.. > > i'm new to prototype and javascripting but i just run into a bug, > where cumulativeOffset does not add the border-width when calculating > the offset and so returning "wrong" coordinates. So the current > Event.pointerX() und Event.pointerY() were not Position.within() of > the involved element, even if the mouse has never left this element.. > > i tried to fix it, but i am still having a +-2px offset in IE which i > can not explain. > > may be you have a similar problem when using cumulativeOffset()..
Yes, your right, this is my problem - not as I first thought the Z-index. Could you post your fixed code so that I can try it? Thanks Frederic -- Frederic Gaus pgp-key: 93E6903C fingerprint: 0C55 4517 CC1E 5F7F 9059 3535 AB54 D8E8 93E6 903C --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
