Merge pull request #174 from hovel/set-position

Improve setPos for small screens
This commit is contained in:
Valeriy 2014-09-24 14:52:51 +06:00
commit 0353492609

View File

@ -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,