From 705a311b3bbc223737a51bec1d2f978554da086a Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sun, 2 Feb 2014 22:18:05 +0100 Subject: fix datepicker positioning --- framework/Web/Javascripts/source/prado/datepicker/datepicker.js | 8 ++++---- 1 file 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'; } } }, -- cgit v1.2.3