Skip to content

Commit d459605

Browse files
committed
Fix visibility of last editor line
1 parent c09bd56 commit d459605

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

com.codeaffine.eclipse.swt/src/com/codeaffine/eclipse/swt/widget/scrollable/CompositeScrollableLayouter.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ private static int computeHeight( AdaptionContext<?> context ) {
4747
}
4848

4949
private static int computeHeightWithHorizontalBarPadding( AdaptionContext<?> context ) {
50-
int horizontalBarHeight = context.getScrollable().getHorizontalBarSize().y;
51-
return context.getVisibleArea().height - BAR_BREADTH + horizontalBarHeight;
50+
if( context.getScrollable().getHorizontalBarVisible() ) {
51+
int horizontalBarHeight = context.getScrollable().getHorizontalBarSize().y;
52+
return context.getVisibleArea().height - BAR_BREADTH + horizontalBarHeight;
53+
}
54+
return context.getVisibleArea().height - BAR_BREADTH;
5255
}
5356

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

0 commit comments

Comments
 (0)