commit 95febabba28fac36d48d7f4e0c58a661de37ebe5 Author: Damian Johnson atagar@torproject.org Date: Sun Apr 17 13:01:50 2016 -0700
Initialize header to a proper width
Using the actual screen size when initializing rather than a hardcoded value. This should prevent things from jumping around at startup on smaller monitors. --- nyx/panel/header.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nyx/panel/header.py b/nyx/panel/header.py index 115bd3b..164929b 100644 --- a/nyx/panel/header.py +++ b/nyx/panel/header.py @@ -18,6 +18,7 @@ import stem.util.str_tools import stem.util.system
import nyx.controller +import nyx.curses import nyx.panel import nyx.popups import nyx.tracker @@ -50,7 +51,7 @@ class HeaderPanel(nyx.panel.Panel, threading.Thread):
self._vals = Sampling.create()
- self._last_width = 100 + self._last_width = nyx.curses.screen_size()[0] self._pause_condition = threading.Condition() self._halt = False # terminates thread if true self._reported_inactive = False
tor-commits@lists.torproject.org