Added a callback after the dismiss animation was finished. This solves some redraw issues.
Merge pull request #1 from wdullaer/post-dismiss-callback

Added a callback after the dismiss animation was finished.