diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2010-02-09 04:09:26 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2010-02-09 04:09:26 +0000 |
commit | 5eeaa658ba1a37d3ced10a5435a0b302a922c199 (patch) | |
tree | 487cc7999fed5b05da09709028c40b4dabc2b2d6 /ui/jquery.ui.datepicker.js | |
parent | b20df98b18dbd32ce03750e458619bd1e26464ea (diff) | |
download | jquery-ui-5eeaa658ba1a37d3ced10a5435a0b302a922c199.tar.gz jquery-ui-5eeaa658ba1a37d3ced10a5435a0b302a922c199.zip |
datepicker: fixes #4443: Datepicker's vertical position in thickbox. This also fixes the virtual position when the datepicker is close but not right at the bottom of the page.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 91f863ef9..03d58681a 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -725,7 +725,7 @@ $.extend(Datepicker.prototype, { offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ? Math.abs(offset.left + dpWidth - viewWidth) : 0); offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? - Math.abs(offset.top + dpHeight + inputHeight * 2 - viewHeight) : 0); + Math.abs(dpHeight + inputHeight) : 0); return offset; }, |