mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Fixed #5085 bug in findPos for RTL languages
This commit is contained in:
parent
ee87defcca
commit
4e81523227
4
ui/jquery.ui.datepicker.js
vendored
4
ui/jquery.ui.datepicker.js
vendored
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user