resize frame on `core-resize` event.