From: Kevin Lamonte Date: Fri, 23 Aug 2019 09:39:03 +0000 (-0500) Subject: bug got fixed X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=61e8489675de2b0db71b1014c1103ed7b3e33164;p=fanfix-jexer.git bug got fixed --- 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());