Correct content resizing and positioning