aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2010-01-22 10:10:17 +0000
committerKeith Wood <kbwood.au@gmail.com>2010-01-22 10:10:17 +0000
commit4e815232278460d9d1210e08015dafdbb2dce4df (patch)
treef94880eafd91feb842ec228c2c1979fde15991e7 /ui/jquery.ui.datepicker.js
parentee87defcca81d7741758b620b85bd1e70d94cfae (diff)
downloadjquery-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.js4
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];