Handle AttachLayout before ResizeMsg. Fixes #3333 for yahoo static suite.