fixes a positioning issue when resizinh or dragging the modal
fixes issue “2464