Merge pull request #308 from psyafter/patch-1

Align datepicker to right in RTL layout
This commit is contained in:
Valeriy 2015-08-19 13:32:35 +05:00
commit 3641f66516

View File

@ -1819,6 +1819,8 @@
setPos = function () {
var offset = datetimepicker.data('input').offset(), top = offset.top + datetimepicker.data('input')[0].offsetHeight - 1, left = offset.left, position = "absolute", node;
if (datetimepicker.data('input').parent().css('direction') == 'rtl')
left -= (datetimepicker.outerWidth() - datetimepicker.data('input').outerWidth());
if (options.fixed) {
top -= $(window).scrollTop();
left -= $(window).scrollLeft();