I have a button on a page that calls a modal having datepicker.
If this button is at top (I don\'t have to scroll page to click), modal opens and datepicker displays
For me below solution is working
var datepicker = sandbox.dom('body').find('.bootstrap-datetimepicker-widget:last'),
position = datepicker.offset();
// Move datepicker to the exact same place it was but attached to the body
datepicker.appendTo('body');
datepicker.css({
position: 'absolute',
top: position.top,
bottom: 'auto',
left: position.left,
right: 'auto'
});