Made layout recalculate on window resize.