move resize handler from _beforecreate to _after.. (fixes #1743)
Use these tests sparingly, as they will need to be updated frequently as the code generation changes.