Details pane can scroll now. Fixes #44621775554616
This commit is contained in:
24
ui.py
24
ui.py
@@ -264,7 +264,7 @@ class AssigneeTypeAhead(urwid.Pile):
|
|||||||
self.contents = [self.contents[0]]
|
self.contents = [self.contents[0]]
|
||||||
self.edit.set_edit_text(user['name'])
|
self.edit.set_edit_text(user['name'])
|
||||||
|
|
||||||
class TaskDetails(urwid.Pile):
|
class TaskDetails(urwid.ListBox):
|
||||||
def __init__(self, task, stories):
|
def __init__(self, task, stories):
|
||||||
self.task = task
|
self.task = task
|
||||||
self.stories = stories
|
self.stories = stories
|
||||||
@@ -284,23 +284,21 @@ class TaskDetails(urwid.Pile):
|
|||||||
self.userTypeAhead)
|
self.userTypeAhead)
|
||||||
urwid.connect_signal(assignee_type_ahead, 'assigntask', self.assignTask)
|
urwid.connect_signal(assignee_type_ahead, 'assigntask', self.assignTask)
|
||||||
|
|
||||||
projects = [('pack', ProjectIcon(project, self.loadProject))
|
projects = [ProjectIcon(project, self.loadProject)
|
||||||
for project in task['projects']]
|
for project in task['projects']]
|
||||||
|
|
||||||
body = projects + \
|
body = projects + \
|
||||||
[
|
[
|
||||||
('pack', urwid.Divider('=')),
|
urwid.Divider('='),
|
||||||
('pack', task_name_edit),
|
task_name_edit,
|
||||||
('pack', assignee_type_ahead),
|
assignee_type_ahead,
|
||||||
('pack', urwid.Divider('-')),
|
urwid.Divider('-'),
|
||||||
('pack', self.description_edit),
|
self.description_edit,
|
||||||
('pack', urwid.Divider('-')),
|
urwid.Divider('-'),
|
||||||
] + \
|
] + \
|
||||||
[('pack', urwid.Text('[' + story['created_by']['name'] + '] ' + \
|
[urwid.Text('[' + story['created_by']['name'] + '] ' + \
|
||||||
story['text'])) for story in stories] + \
|
story['text']) for story in stories] + \
|
||||||
[
|
[comment_edit]
|
||||||
('weight', 1, urwid.Filler(comment_edit, 'bottom'))
|
|
||||||
]
|
|
||||||
|
|
||||||
super(TaskDetails, self).__init__(body)
|
super(TaskDetails, self).__init__(body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user