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:


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.


Attachments (1)

preload.html (480 bytes) - added by noxryan 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by noxryan

Attachment: preload.html added


comment:1 Changed 11 years ago by Adam Peller

Owner: changed from Adam Peller to dante

comment:2 Changed 8 years ago by xorfacx

Bug Still present in 1.9.2

comment:3 Changed 7 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

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.