mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #308 from psyafter/patch-1
Align datepicker to right in RTL layout
This commit is contained in:
commit
3641f66516
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user