Window resize works kind of correctly, there is a bug with the cursor though, pretty strange.