resize editor accordingly when butter is minimized/maximized.