#15 Auto-adapting to window resize