bind window resize for content resize