reset resize flag before calling callback