From c770d71f143d622482d6d9d0dad3d6611f8382ec Mon Sep 17 00:00:00 2001 From: poire-z Date: Sun, 24 Sep 2017 01:08:44 +0200 Subject: [PATCH] Fix Menu (TOC, classic file browser...) right padding (#3255) --- frontend/ui/widget/menu.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/ui/widget/menu.lua b/frontend/ui/widget/menu.lua index 72492ecf2..5fd088a0e 100644 --- a/frontend/ui/widget/menu.lua +++ b/frontend/ui/widget/menu.lua @@ -138,8 +138,9 @@ function MenuItem:init() end self.detail = self.text - -- 15 for HorizontalSpan, - self.content_width = self.dimen.w - shortcut_icon_dimen.w - 15 + -- account for added HorizontalSpans + self.content_width = self.dimen.w - shortcut_icon_dimen.w + - Size.span.horizontal_small - Size.span.horizontal_default -- we need this table per-instance, so we declare it here if Device:isTouchDevice() then