Use correct viewport (visible) size for layout