or i could just use Prototype.Browser.IE der...

sorry, too many projects to memorize the API for everything...

thanks for the help



On Mon, Oct 6, 2008 at 11:01 AM, Brian Williams <[EMAIL PROTECTED]>wrote:

> Kangax, thanks for the info on Position; however having made that change
> didn't affect my issue.
>
> using javascript:alert(document.compatMode) confirms that ie6 is in
> compatibility mode.
>
> I can only assume that it is being affected by CSS inheritance -- for how I
> have hard coded top and left through CSS and will continue to look for a js
> way to alter the value taking browsers into account.  (plus i don't have
> time to try and fix the CSS issues)
>
> Thanks again.
>
>
>
> On Sat, Oct 4, 2008 at 2:42 PM, kangax <[EMAIL PROTECTED]> wrote:
>
>>
>> On Oct 3, 6:14 pm, "Brian Williams" <[EMAIL PROTECTED]> wrote:
>> > hey everyone, yeah, i know this is a stupid newb questions, but it seems
>> to
>> > be slipping my mind.
>> >
>> > I have ye olde code using ye olde version prototype 1.6.0.2
>> >
>> > var pos = Position.cumulativeOffset(element);
>> > landing.style.top = pos[1] + element.offsetHeight + 'px';
>> >
>> > the positioning is pretty much spot on for ie7, ff2 and ff3, but of
>> course
>> > ie6 it's about ~150 pixels too far south on the screen.
>> >
>> > Could there be a css reason for this that i could write an ie6 specific
>> css
>> > rule for?  Or how do i calculate a correct positioning.
>>
>> Is the document rendered in quirks mode, by any chance?
>>
>> Also, `Position` has been deprecated, so it's a good idea to get rid
>> of it:
>>
>> var offset = element.cumulativeOffset();
>> landing.style.top = offset.top + element.offsetHeight + 'px';
>>
>> >
>> > thanks!
>>
>> --
>> kangax
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
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