Unify resize callbacks