Opened 8 years ago

Closed 4 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: noxryan@…
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)

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

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by noxryan

Attachment: preload.html added

Example

comment:1 Changed 8 years ago by Adam Peller

Owner: changed from Adam Peller to dante

comment:2 Changed 6 years ago by xorfacx

Bug Still present in 1.9.2

comment:3 Changed 4 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.