From 8f38e547477de49d28deed53e992449fd0938750 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@linux.vnet.ibm.com>
Date: Mon, 21 Mar 2016 10:34:48 -0700
Subject: [PATCH] Fix rendering error in change screen

This corrects the following error:
  urwid.listbox.ListBoxError: Widget <Pile selectable box/flow widget>
  at position 2 within listbox calculated X rows but rendered Y!

This happened when related changes links were winder than the screen.
They were rendered as FixedButtons, but there is no reason for them
to be.  This changes them to regular urwid Buttons which are flow
widgets and will line-wrap if needed.

Change-Id: Ia91beaffadbb7a3e5341b11c49bb2d6d74df4782
---
 gertty/view/change.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gertty/view/change.py b/gertty/view/change.py
index 7b1ad0a..c4bfb2a 100644
--- a/gertty/view/change.py
+++ b/gertty/view/change.py
@@ -319,7 +319,7 @@ class RevisionRow(urwid.WidgetWrap):
     def cherryPick(self, button):
         self.app.localCherryPickCommit(self.project_name, self.commit_sha)
 
-class ChangeButton(mywid.FixedButton):
+class ChangeButton(urwid.Button):
     button_left = urwid.Text(u' ')
     button_right = urwid.Text(u' ')