Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1477 closed defect (fixed)

Slider widget doesn't work in Safari

Reported by: dojo@… Owned by: Douglas Hays
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: widget slider safari Cc: dojo@…, doughays@…
Blocked By: Blocking:

Description

The Slider widget doesn't seem to work in Safari. It renders OK, but dragging the thumb or clicking on the arrows has no effect. Mac OS X v10.4.7. I'm testing with the following HTML: <html> <head>

<title>Widgets &amp; namespaces</title> <script type="text/javascript">

var djConfig = {

isDebug: true

};

</script> <script language="javascript" type="text/javascript" src="lib/dojo.js"></script>

</head> <body> <script language="javascript" type="text/javascript">

dojo.require("dojo.widget.Slider");

</script>

<div

id="prioritySlider" dojoType="SliderHorizontal?" minimumX="0" maximumX="100"

</div>

</body> </html>

Attachments (1)

1477.patch (3.1 KB) - added by Douglas Hays 13 years ago.
changed offset calculations in Slider.js

Download all attachments as: .zip

Change History (11)

comment:1 Changed 13 years ago by Adam Peller

Cc: doughays@… added

comment:2 Changed 13 years ago by Douglas Hays

Cc: dojo@… peller@… added
Owner: changed from bill to Douglas Hays

Please verify with the attached patch file.

comment:3 Changed 13 years ago by Adam Peller

Owner: changed from Douglas Hays to Adam Peller

comment:4 Changed 13 years ago by dojo@…

Tried the supplied patch on the latest SVN and the test file originally submitted. It's definitely better: the thumb now moves when you drag it. However, there are still issues in Safari:

  • When you first grab the thumb, it jumps about 20px to the left.
  • When you start moving the thumb it jumps another 5px or so left (regardless of drag direction).
  • Clicking in the track does cause the thumb to jump into position, but it jumps about 20px left of where you click.
  • Whereas in Firefox the thumb appears directly on top of (overlaying) the track, in Safari it appears above the track, with only 2-3px of overlap between the bottom of the thumb and the top of the track.

comment:5 Changed 13 years ago by dylan

Milestone: 0.4
Version: 0.40.3

comment:6 Changed 13 years ago by Adam Peller

Owner: changed from Adam Peller to Douglas Hays

Changed 13 years ago by Douglas Hays

Attachment: 1477.patch added

changed offset calculations in Slider.js

comment:7 Changed 13 years ago by Douglas Hays

Cc: peller@… removed
Status: newassigned

Please verify with the updated patch.

comment:8 Changed 13 years ago by dojo@…

Hmm...unless I'm missing something the new patch has the same effect as the old one.

comment:9 Changed 13 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [5946]) Fixes #1477

comment:10 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.