Fix for menuicon click on window resize