summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/datepicker/datepicker.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
index 012f2ef8..68b31455 100644
--- a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
+++ b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
@@ -571,10 +571,10 @@ Prado.WebUI.TDatePicker = jQuery.klass(Prado.WebUI.Control,
{
var pos = jQuery(this.control).position();
- pos[1] += this.getDatePickerOffsetHeight();
- this._calDiv.style.top = (pos[1]-1) + "px";
+ pos['top'] += this.getDatePickerOffsetHeight();
+ this._calDiv.style.top = (pos['top']-1) + "px";
this._calDiv.style.display = "block";
- this._calDiv.style.left = pos[0] + "px";
+ this._calDiv.style.left = pos['left'] + "px";
this.documentClickEvent = jQuery.bind(this.hideOnClick, this);
this.documentKeyDownEvent = jQuery.bind(this.keyPressed, this);
@@ -590,7 +590,7 @@ Prado.WebUI.TDatePicker = jQuery.klass(Prado.WebUI.Control,
if(this.positionMode=='Top')
{
- this._calDiv.style.top = ((pos[1]-1) - this.getDatePickerOffsetHeight() - this._calDiv.offsetHeight) + 'px';
+ this._calDiv.style.top = ((pos['top']-1) - this.getDatePickerOffsetHeight() - this._calDiv.offsetHeight) + 'px';
}
}
},