Opened 11 years ago
Closed 7 years ago
#12652 closed defect (patchwelcome)
dojox.image.preload() Can cause horizontal scroll
Reported by: | noxryan | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.13 |
Component: | Dojox | Version: | 1.6.0 |
Keywords: | dojox.image preload width horizontal scroll | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
If you use dojox.image.preload() to preload images with a width larger than the viewport, Firefox and IE will enable the horizontal scroll. This can be fixed by setting width to 1px on line 28 of dojox/image/_base.js
Currently, on line 28, height is set to 1px but width is not.
Perhaps this function could also be re-written to use JavaScript?'s Image() object to preload without writing anything to the DOM.
Example: http://noxstudios.com/preload.html
Attachments (1)
Change History (4)
Changed 11 years ago by
Attachment: | preload.html added |
---|
comment:1 Changed 11 years ago by
Owner: | changed from Adam Peller to dante |
---|
comment:3 Changed 7 years ago by
Milestone: | tbd → 1.12 |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.
Note: See
TracTickets for help on using
tickets.
Example