Fix widgets not showing until window resize.