menu: vsdcard - scroll long filenames (#694)

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt 2018-09-25 21:52:23 +03:00 committed by KevinOConnor
parent 95392595f6
commit 18b56c3cda
1 changed files with 4 additions and 1 deletions

View File

@ -780,7 +780,10 @@ class MenuVSDCard(MenuList):
self.append_item(MenuCommand(self._manager, {
'name': '%s' % str(fname),
'cursor': '+',
'gcode': "\n".join(gcode)
'gcode': "\n".join(gcode),
'scroll': True,
# mind the cursor size in width
'width': (self._manager.cols-1)
}))
def populate_items(self):