diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-02 22:18:05 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-02 22:18:05 +0100 |
commit | 705a311b3bbc223737a51bec1d2f978554da086a (patch) | |
tree | 757bb7820490f94506ec1ec1b54b303c88a144ab /framework | |
parent | 57530e6a46d0ab8a3d1cf47006693b5689f481fc (diff) |
fix datepicker positioning
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/Javascripts/source/prado/datepicker/datepicker.js | 8 |
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'; } } }, |