Skip to content
Permalink
Browse files

Datepicker: Fixed #5085 bug in findPos for RTL languages

  • Loading branch information
Keith Wood
Keith Wood committed Jan 22, 2010
1 parent ee87def commit 4e815232278460d9d1210e08015dafdbb2dce4df
Showing with 3 additions and 1 deletion.
  1. +3 −1 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];

0 comments on commit 4e81523

Please sign in to comment.
You can’t perform that action at this time.