Adjust when the editor resizes.