Bind an event handler to the resize