Useful trick I discovered. I have a page with a bunch of character portraits, and then you click on them to make a macWindow popup with a bio. I just have the one macWindow, and the button script updates the text and unhides the window if you closed it.
The problem is that when you've scrolled down in one bio, even after closing and reopening, it still retains the old scroll position, so you end up jumped in the middle of the second bio. Easy fix for this was to modify the `set_value` method to reset the scroll:
on set_value x do field.value: x field.scrollto[0] end