Eli,

The scrollTo() call works fine for all versions of all browsers (Firefox, 
IE, Opera) on my WinXP with that javascript (whether inline as you had it, 
or moved out to a function that is called on click), but not for any of them 
when the documentElement's overflow is set to 'hidden' via the code in my 
application.

What's even more strange is that if I put a test scrollTo() call for 
scrolling to an arbitrary position IMMEDIATELY BEFORE the 
document.getElementsByTagName('html')[0];h.style.overflow='hidden'; 
statement in my application, the scrolling works, but not if placed 
IMMEDIATELY AFTER. And that's the case for all of the browsers, not anything 
specific to Firefox.  So something in addition to setting the overflow to 
'hidden' must be causing my problem, but it doesn't look like I'll be 
figuring out what that is tonight.  When I do finally figure it out, if it's 
anything relevant to Firefox development I'll post more in this thread.

Fote
-- 


"Eli Friedman" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Foteos Macrides wrote:
>> Eli,
>>
>> I tried it again with Firefox 2.0, IE 7.0, and Opera 9.02, but 
>> self.scrollTo() didn't work with any of them when overflow was set to 
>> 'hidden' for the documentElement.
>>
>> Fote
>
> Here's my code; are you trying to do something different?
>
> -Eli
>
> <!DOCTYPE html>
> <button onclick="window.scrollTo(2000,2000);">Click</button>
> <a href="#a">asdf</a>
> 1a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 2a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 3a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 4a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 5a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 6a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 7a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 8a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 9a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 10a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 11a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> 12a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>
> <a name="a"><button onclick="var 
> h=document.getElementsByTagName('html')[0];h.style.overflow='hidden'; 
> window.scrollTo(2000,2000);">Click</button></a> 


_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to