diff options
author | wei <> | 2006-07-02 04:33:04 +0000 |
---|---|---|
committer | wei <> | 2006-07-02 04:33:04 +0000 |
commit | b2f51830b7ad319f5d978b411d9bfd87f03308eb (patch) | |
tree | 77fef774116146a5f4c84dd46a529ecb30ac613f /framework/Web/Javascripts/datepicker/datepicker.js | |
parent | 6535233f952be866d624ad1a573562c6706138de (diff) |
Fixed #226 and #246
Diffstat (limited to 'framework/Web/Javascripts/datepicker/datepicker.js')
-rw-r--r-- | framework/Web/Javascripts/datepicker/datepicker.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/datepicker/datepicker.js b/framework/Web/Javascripts/datepicker/datepicker.js index 11bee07e..4525c1ba 100644 --- a/framework/Web/Javascripts/datepicker/datepicker.js +++ b/framework/Web/Javascripts/datepicker/datepicker.js @@ -247,10 +247,10 @@ Prado.WebUI.TDatePicker.prototype = this.iePopUp.style.position = "absolute"
this.iePopUp.scrolling="no"
this.iePopUp.frameBorder="0"
- document.body.appendChild(this.iePopUp);
+ this.control.parentNode.appendChild(this.iePopUp);
}
- document.body.appendChild(this._calDiv);
+ this.control.parentNode.appendChild(this._calDiv);
this.update();
this.updateHeader();
@@ -542,8 +542,8 @@ Prado.WebUI.TDatePicker.prototype = if(!this.showing)
{
- var pos = Position.cumulativeOffset(this.control);
-
+ var pos = Position.positionedOffset(this.control);
+
pos[1] += this.getDatePickerOffsetHeight();
this._calDiv.style.display = "block";
|