If you’ve set your UserDocument to use scroll bars, the determining factor of them appearing is the MinHeight and MinWidth properties. These properties are used to return or set the minimum height and width of a viewport at which scroll bars appear. If scroll bars have been set, and the ViewPortHeight is less than the MinHeight, then a vertical scroll bar appears. If the ViewPortWidth is less than the MinWidth, then a horizontal scroll bar appears.