Fix missing scrollbars when content is too large in preview mode

Closes #347