"Foteos Macrides" wrote:
> [snip]
> 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. [snip]
It does work if I impose a slight delay:
h=document.getElementsByTagName('html')[0];
h.style.overflow='hidden';
st=setTimeout("self.scrollTo(scLeft,scTop)",1);
Apparently a race condition can exist between the inappropriate reset of the
document to 0,0 upon setting the documentElement's overflow to 'hidden' and
the scrolling to a specified position for an immediately following
scrollTo() call.
Fote
--
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout