Update resize center function to use base as this for correct context of modal.