Dispatching resize event for layout