Opened 8 years ago
Closed 5 years ago
#17151 closed defect (patchwelcome)
dojo/window::scrollIntoView scrolls down unnecessarily when body element shorter than content
Reported by: | jeffreym | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.13 |
Component: | HTML | Version: | 1.9.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When the <body> element is vertically smaller than the page content (because of e.g. an uncleared float or an absolutely positioned element), calling scrollIntoView on an element below the bottom of body will scroll down, even if the element is already completely in view.
Attachments (1)
Change History (4)
Changed 8 years ago by
Attachment: | scrollbug.html added |
---|
comment:1 Changed 8 years ago by
Component: | General → HTML |
---|---|
Owner: | set to Douglas Hays |
Status: | new → assigned |
Hmm, a DOMNode outside of the bounds of <body>, not sure if we want to support that but assigning to Doug.
comment:2 Changed 7 years ago by
Owner: | Douglas Hays deleted |
---|---|
Status: | assigned → open |
comment:3 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | open → closed |
Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.
Note: See
TracTickets for help on using
tickets.
An example - scroll to the top and click the yellow div; the window will scroll down even though the div is already in view, because it is below document.body.clientHeight