Skip to content

Commit

Permalink
Merge pull request #104 from PyvesB/last-line
Browse files Browse the repository at this point in the history
Fix visibility of last editor line
  • Loading branch information
fappel authored Aug 8, 2020
2 parents c09bd56 + d459605 commit fb51c24
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ private static int computeHeight( AdaptionContext<?> context ) {
}

private static int computeHeightWithHorizontalBarPadding( AdaptionContext<?> context ) {
int horizontalBarHeight = context.getScrollable().getHorizontalBarSize().y;
return context.getVisibleArea().height - BAR_BREADTH + horizontalBarHeight;
if( context.getScrollable().getHorizontalBarVisible() ) {
int horizontalBarHeight = context.getScrollable().getHorizontalBarSize().y;
return context.getVisibleArea().height - BAR_BREADTH + horizontalBarHeight;
}
return context.getVisibleArea().height - BAR_BREADTH;
}

private static int computeWidth( AdaptionContext<?> context ) {
Expand Down

0 comments on commit fb51c24

Please sign in to comment.