revert all change to original jschr's code
Reposition the modal on size changed

Modal with  '.modal-reposition' class will listen to any input 'change'
event to check modal-size changed and fire 'resize.modal'.