Unify resize callbacks
Merge pull request #189 from irskep/unify-resize-callback

Unify resize callbacks