mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #14 from lowski/fix_positioning
Fix for right positioning of the widget
This commit is contained in:
commit
7edaa55553
@ -807,7 +807,7 @@
|
|||||||
if( left+datetimepicker[0].offsetWidth>$('body').width() )
|
if( left+datetimepicker[0].offsetWidth>$('body').width() )
|
||||||
left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth;
|
left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth;
|
||||||
datetimepicker.css({
|
datetimepicker.css({
|
||||||
left:offset.left,
|
left:left,
|
||||||
top:top
|
top:top
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user