From: Niki Roo Date: Wed, 28 Jun 2017 20:19:45 +0000 (+0200) Subject: Fix TUI visual glitch (empty button) X-Git-Tag: fanfix-1.6.0~32 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=0b7e3d78f5e9608540d0f506f31f342823ee0f27;p=fanfix.git Fix TUI visual glitch (empty button) --- diff --git a/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java b/src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java index c942624..26c1917 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);