Fix missing scrollbars when content is too large in preview mode

Closes #347
Merge pull request #366 from Martii/Issue-347autoScrollbars

Fix missing scrollbars when content is too large in preview mode

Auto-merge