#17626 closed defect (fixed)
[regression] With Dojo 1.9.2, pages are jumping to the bottom after onload in Chrome
Reported by: | Cormac Flynn | Owned by: | Colin Snover |
---|---|---|---|
Priority: | blocker | Milestone: | 1.9.3 |
Component: | Events | Version: | 1.9.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hey,
I have a strange issue that has arisen since updating to Dojo 1.9.2; upon page load, the page is jumping to the bottom.
This happens consistently and only with Dojo 1.9.2 on Chrome - if I downgrade to 1.9.1 it never happens, and I don't see it at all on Firefox.
I've commented out all Dojo dependencies and reintroduced them one-by-one, but the problem doesn't appear for any one module in particular. For example, it happens when I include dojo/topic or one of the dom modules, but not if I only include dojo/_base/window.
I understand this bug report isn't must use without more specific steps-to-reproduce; I'll work on a test case when I have a moment. But it is happening consistently, and disappears when I downgrade.
Change History (12)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
I haven't yet had a chance to test; I'll have some time later in the week to try to narrow it down further
comment:3 Changed 7 years ago by
This is going to be caused by the changed focusin event detection in dojo/on
, though it should not cause such a behaviour since the test is designed to use an element that is viewport-fixed so should not cause any scrolling.
comment:4 Changed 7 years ago by
Aargh. I've just reported #17645 then discovered this ticket. Yes there's position: fixed
on temporary element but looks like Chrome ignores it when no coordinates are provided as well. So as I wrote in #17645, it can be fixed by adding in dojo/on.js following code on line 20:
element.style.top = '0px'; element.style.left = '0px';
comment:6 Changed 7 years ago by
Component: | General → Events |
---|---|
Owner: | set to Colin Snover |
Status: | new → assigned |
Summary: | With Dojo 1.9.2, pages are jumping to the bottom after onload in Chrome → [regression] With Dojo 1.9.2, pages are jumping to the bottom after onload in Chrome |
Colin, this is from your 2536e5cd0935cc7356d584bab6ac2c73d3ad6164 (refs #17599).
comment:7 Changed 7 years ago by
I’m having trouble reproducing any issue with the event-focusin test case. Can someone provide a modification to that test case that demonstrates this issue?
comment:8 Changed 7 years ago by
Never mind, I was able to reproduce it. Sorry for the trouble. Fix forthcoming.
comment:9 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:11 Changed 7 years ago by
Milestone: | tbd → 1.9.3 |
---|---|
Priority: | undecided → blocker |
Are there any pages within the Dojo tests where you also see this in action?