Skip to content

Commit

Permalink
hot-fix scroll bar always present
Browse files Browse the repository at this point in the history
  • Loading branch information
francescotescari committed Mar 25, 2021
1 parent bac4554 commit 03c4f89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void build(Text text, String title) {
content.prefHeightProperty().bind(Bindings.createObjectBinding(new Callable<Number>() {
@Override
public Number call() throws Exception {
return scrollPane.getViewportBounds().getHeight();
return scrollPane.getViewportBounds().getHeight()-15;
}
}, scrollPane.viewportBoundsProperty()));
scrollPane.setContent(content);
Expand Down

0 comments on commit 03c4f89

Please sign in to comment.