Datepicker bug
Datepicker bug
Hello all!
I've been using the jquery datepicker in 1.6rc5 and i'm having
problems with it. When I pop up a datepicker, it is way off in its
position. I did some tests and I found this line in the datepicker
code:
<code>
/* Find an object's position on the screen. */
_findPos: function(obj) {
while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
obj = obj.nextSibling;
}
var position = $(obj).offset();
return [position.left, position.top];
},
</code>
I think this line:
<code>
var position = $(obj).offset();
</code>
should be:
<code>
var position = $(obj).offset();
</code>
because If I use that line, the datepicker lines up correctly.