Allow specifying the width/height for `resizeWindow`

`resizeWindow` was ignoring its arguments when a view's element was attached to the DOM, and falling back to the width/height of its parent. This meant when the window was resized in most examples it would resize horizontally but not vertically. Here's a fix for that :)