stop scrolling buttons out of view on filesystem summary

This commit is contained in:
Michael Hudson-Doyle 2017-09-08 10:26:50 +12:00
parent e0f75ba013
commit 4a6549efa7
2 changed files with 13 additions and 4 deletions

View File

@ -115,7 +115,7 @@ class FilesystemController(BaseController):
log.debug("In disk partition view, using {} as the disk.".format(disk.serial))
title = ("Partition, format, and mount {}".format(disk.serial))
footer = ("Partition the disk, or format the entire device "
"without partitions.")
"without partitions")
self.ui.set_header(title)
self.ui.set_footer(footer)
dp_view = DiskPartitionView(self.model, self, disk)

View File

@ -85,16 +85,25 @@ class FilesystemView(BaseView):
Text("AVAILABLE DEVICES"),
Text(""),
self._build_available_inputs(),
Text(""),
#self._build_menu(),
#Text(""),
#Text("USED DISKS"),
#Text(""),
#self._build_used_disks(),
#Text(""),
Padding.fixed_10(self._build_buttons()),
]
super().__init__(Padding.center_90(ListBox(self.body)))
self.lb = Padding.center_90(ListBox(self.body))
self.footer = Pile([
Text(""),
Padding.fixed_10(self._build_buttons()),
Text(""),
])
self.frame = Pile([
self.lb,
('pack', self.footer)])
if self.model.can_install():
self.frame.focus_position = 1
super().__init__(self.frame)
log.debug('FileSystemView init complete()')
def _build_used_disks(self):