mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #174 from hovel/set-position
Improve setPos for small screens
This commit is contained in:
commit
0353492609
@ -1303,7 +1303,7 @@
|
||||
if (top < 0)
|
||||
top = 0;
|
||||
if( left+datetimepicker[0].offsetWidth>$(window).width() )
|
||||
left = offset.left-datetimepicker[0].offsetWidth+datetimepicker.data('input')[0].offsetWidth;
|
||||
left = $(window).width()-datetimepicker[0].offsetWidth;
|
||||
}
|
||||
datetimepicker.css({
|
||||
left:left,
|
||||
|
Loading…
Reference in New Issue
Block a user