custom resize event, if not null, it should be called before doing anything else in the resizeEvent
See Implementation
custom resize event, if not null, it should be called before doing anything else in the resizeEvent