Flex handles window resize during use