Fix a bug with some windows not getting resized correctly.