Change the max grid size before changing the size (fixes bug #12292). Don't rotate...