auto-scaling of content to fit in window