From 18b56c3cda3e8d886ea6f27b875525d6b3b139a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Tue, 25 Sep 2018 21:52:23 +0300 Subject: [PATCH] menu: vsdcard - scroll long filenames (#694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/extras/display/menu.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/klippy/extras/display/menu.py b/klippy/extras/display/menu.py index a8c74341..a930f073 100644 --- a/klippy/extras/display/menu.py +++ b/klippy/extras/display/menu.py @@ -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):