Freeze Window and Refresh Window are the script steps to avoid that.
Go to Layout ["Contact Record Details" (CONTACTRCD)]
Adjust Windows [Resize to Fit]
Yes, you're right that works perfect. Filemaker is even bright enough to just display the window as grey until the window is refreshed. I don't know why I didn't think about doing that eairler, I freeze windows all the time!
One thought though, is that refresh at the end of the script really necessary? In my other situations I've never used it, as I understand that the freeze only lasts while the script is running.
Refresh window would only be needed if there are additional script steps after the Refresh Window and you want the window to update before those additional steps
Ah yes, this it basically what I had assumed. Thanks.