Fixing vertical scrollbar in small windows

Fixing issue #596