This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/camel-tui-tamboui-improvements in repository https://gitbox.apache.org/repos/asf/camel.git
commit ac49adc7b8dcdf7f92ed3dea6ac3b1247294f91a Author: Claus Ibsen <[email protected]> AuthorDate: Fri May 15 17:23:11 2026 +0200 CAMEL-23514: Fix scrollbar not showing in word-wrap mode for History and Trace detail panels The scrollbar visibility check used raw line count instead of wrapped content height, so the scrollbar was hidden even when content exceeded the viewport in word-wrap mode. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --- .../apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java index 5f9b9e853a55..a1c670e97154 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java @@ -2431,9 +2431,9 @@ public class CamelMonitor extends CamelCommand { .build(); frame.renderWidget(detail, hChunks.get(0)); - if (lines.size() > visibleHeight) { + if (contentHeight > visibleHeight) { ScrollbarState scrollState = new ScrollbarState(); - scrollState.contentLength(lines.size()); + scrollState.contentLength(contentHeight); scrollState.viewportContentLength(visibleHeight); scrollState.position(traceDetailScroll); frame.renderStatefulWidget( @@ -2713,9 +2713,9 @@ public class CamelMonitor extends CamelCommand { .build(); frame.renderWidget(detail, hChunks.get(0)); - if (lines.size() > visibleHeight) { + if (contentHeight > visibleHeight) { ScrollbarState scrollState = new ScrollbarState(); - scrollState.contentLength(lines.size()); + scrollState.contentLength(contentHeight); scrollState.viewportContentLength(visibleHeight); scrollState.position(historyDetailScroll); frame.renderStatefulWidget(
