bug got fixed
authorKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 23 Aug 2019 09:39:03 +0000 (04:39 -0500)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Fri, 23 Aug 2019 09:39:03 +0000 (04:39 -0500)
examples/JexerImageViewer.java

index 437aa8e712153f5a8dd56515094ac685cfb0456c..4839c238fd212370c82e5ee6005088fc9a274843 100644 (file)
@@ -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());