From 61e8489675de2b0db71b1014c1103ed7b3e33164 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Fri, 23 Aug 2019 04:39:03 -0500 Subject: [PATCH] bug got fixed --- examples/JexerImageViewer.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/JexerImageViewer.java b/examples/JexerImageViewer.java index 437aa8e..4839c23 100644 --- a/examples/JexerImageViewer.java +++ b/examples/JexerImageViewer.java @@ -106,7 +106,7 @@ class ImageViewerDesktop extends TDesktop { setActive(true); // Add directory treeView - treeView = addTreeViewWidget(0, 0, getWidth() / 2, getHeight() - 1, + treeView = addTreeViewWidget(0, 0, getWidth() / 2, getHeight(), new TAction() { public void DO() { TTreeItem item = treeView.getSelected(); @@ -151,11 +151,6 @@ class ImageViewerDesktop extends TDesktop { }, filters); - // This appears to be a bug. If I pass keystrokes to the tree view, - // it will center correctly. - treeView.onKeypress(new TKeypressEvent(kbDown)); - treeView.onKeypress(new TKeypressEvent(kbUp)); - if (directoryList.getList().size() > 0) { activate(directoryList); setThumbnail(directoryList.getPath()); -- 2.27.0