`wasResized`? I found this a bit hard to get into. Also instead of defining a constant for this I'd simply add two one-liners to test and set the flag.