iraychen / colorpickerjs

Automatically exported from code.google.com/p/colorpickerjs
MIT License
0 stars 0 forks source link

IE 6 / Scriptaculous 1.6.1 / Prototype 1.5 #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This was having problems in IE6 when the color started out as '000000'.
Turns out hsv[1] was coming across as 'undefined'. 

Was able to get this working on IE6 with older versions of scriptaculous
and prototype by changing line 140 of colorpicker.js:

    this.control.selector.style.left = Math.round((hsv[1] ? hsv[1] : 0) *
this.control.pickerArea.offsetWidth) + "px";

Original issue reported on code.google.com by john.j.r...@gmail.com on 2 Oct 2008 at 6:01