From 0b7e3d78f5e9608540d0f506f31f342823ee0f27 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 28 Jun 2017 22:19:45 +0200 Subject: [PATCH] Fix TUI visual glitch (empty button) --- src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java b/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java index c942624b..26c1917d 100644 --- a/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java +++ b/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java @@ -41,12 +41,12 @@ public class TuiReaderStoryWindow extends TWindow { statusBar = newStatusBar(desc(meta)); statusBar.addShortcutKeypress(TKeypress.kbF10, TCommand.cmExit, "Exit"); - navigationButtons = new ArrayList(4); + navigationButtons = new ArrayList(5); // -3 because 0-based and 2 for borders int row = getHeight() - 3; - addButton(" ", 0, row, null); // for bg colour when << button is pressed + navigationButtons.add(addButton(" ", 0, row, null)); // for bg colour when << button is pressed navigationButtons.add(addButton("<< ", 0, row, new TAction() { public void DO() { setChapter(0); -- 2.27.0