Scale window when configuration changes
This makes the floating window become portrait or landscape when rotating the device