[tor-commits] [nyx/master] Stretch descriptor dialog to include title

atagar at torproject.org atagar at torproject.org
Sun Oct 29 00:39:31 UTC 2017


commit cb89c5e987fdcabdaa75b1487f1459d0ca93415d
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Oct 28 17:37:23 2017 -0700

    Stretch descriptor dialog to include title
    
    If the dialog's title is shorter than the content (which happens when we lack
    descriptors) the dialog crops the title.
---
 nyx/popups.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nyx/popups.py b/nyx/popups.py
index 96e9126..eaa2148 100644
--- a/nyx/popups.py
+++ b/nyx/popups.py
@@ -228,7 +228,7 @@ def show_descriptor(fingerprint, color, is_close_key):
     subwindow.box()
     subwindow.addstr(0, 0, title, HIGHLIGHT)
 
-  width, height = 0, len(lines) + 2
+  width, height = len(title), len(lines) + 2
   screen_size = nyx.curses.screen_size()
 
   for line in lines:



More information about the tor-commits mailing list