Okay I found this: How Canvas.save() and Canvas.restore() actually work
Which shows how to save, then restore canvas if the form is resized. This is probably what happened - when the output window opened, the form resized.
But… can I capture a form.resize event? Don’t see on on the design page. So I won’t know when to trigger.