Community
Participate
Working Groups
The doPageDown method assumes that there is always at least one line visible. This is not true if the widget has not been displayed yet or if it is resized to less than an entire line height. The IllegalArgumentException is thrown in DefaultContent when calling invokeAction(ST.PAGE_DOWN) or when pressing page down.
In addition, page down only works when there are at least two lines fully visible. It should work even if there is only one line partially visible. In that case it should scroll just one line.
Fixed doPageDown to always scroll at least one line. Changed doPageUp to match new behavior in reverse direction.