davsclaus commented on code in PR #27487:
URL: https://github.com/apache/camel/pull/27487#discussion_r4205706375
##########
dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/AutocompletePopup.java:
##########
@@ -385,9 +402,9 @@ private void renderList(Frame frame, Rect listRect) {
frame.renderStatefulWidget(list, listRect, renderState);
int visibleRows = Math.max(1, listRect.height() - 2);
- if (shown + 2 > visibleRows) {
+ if (listRows() + 2 > visibleRows) {
scrollbarState
- .contentLength(shown)
+ .contentLength(listRows())
.viewportContentLength(visibleRows)
.position(sel != null ? sel : 0);
Review Comment:
Right, thanks: applied in d1d54729a55d, the scrollbar position adds the
divider row too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]