version 0.4 (build 1)

fixed : jdcalendar closing when changing month or year
This commit is contained in:
Stan Ozier 2010-05-31 16:59:53 +02:00
parent 4042b42bdf
commit 90dd924ee4
1 changed files with 7 additions and 8 deletions

View File

@ -339,10 +339,9 @@ jdPicker.prototype = {
},
insideSelector: function(event) {
var offset = this.dateSelector.position();
var offset = this.dateSelector.offset();
offset.right = offset.left + this.dateSelector.outerWidth();
offset.bottom = offset.top + this.dateSelector.outerHeight();
return event.pageY < offset.bottom &&
event.pageY > offset.top &&
event.pageX < offset.right &&
@ -409,12 +408,12 @@ jdPicker.prototype = {
setPosition: function() {
var offset = this.input.offset();
if ($('#cboxContent')[0]) {
} else {
this.rootLayers.css({
top: offset.top + this.input.outerHeight(),
left: offset.left
});
}
var offset = this.input.position();
}
this.rootLayers.css({
top: offset.top + this.input.outerHeight(),
left: offset.left
});
if (this.ieframe) {
this.ieframe.css({