diff options
author | Keith Wood <kbwood.au@gmail.com> | 2010-01-22 10:10:17 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2010-01-22 10:10:17 +0000 |
commit | 4e815232278460d9d1210e08015dafdbb2dce4df (patch) | |
tree | f94880eafd91feb842ec228c2c1979fde15991e7 /ui/jquery.ui.datepicker.js | |
parent | ee87defcca81d7741758b620b85bd1e70d94cfae (diff) | |
download | jquery-ui-4e815232278460d9d1210e08015dafdbb2dce4df.tar.gz jquery-ui-4e815232278460d9d1210e08015dafdbb2dce4df.zip |
Datepicker: Fixed #5085 bug in findPos for RTL languages
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 45d514a33..6e5fe8b00 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -730,8 +730,10 @@ $.extend(Datepicker.prototype, { /* Find an object's position on the screen. */ _findPos: function(obj) { + var inst = this._getInst(obj); + var isRTL = this._get(inst, 'isRTL'); while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) { - obj = obj.nextSibling; + obj = obj[isRTL ? 'previousSibling' : 'nextSibling']; } var position = $(obj).offset(); return [position.left, position.top]; |