Defect fixes

Fixed defect preventing the viewport from resizing when the scrollbar is
disabled