From bf8adf28527ae0aa354038d067e8a3c7c9c9ab82 Mon Sep 17 00:00:00 2001 From: David <97603719+Commodore64user@users.noreply.github.com> Date: Sat, 12 Apr 2025 06:50:58 +0100 Subject: [PATCH] DictQuickLookup: make the widget's width user patchable (#13497) --- frontend/ui/widget/dictquicklookup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/dictquicklookup.lua b/frontend/ui/widget/dictquicklookup.lua index 9bf5afc8c..0ba487af1 100644 --- a/frontend/ui/widget/dictquicklookup.lua +++ b/frontend/ui/widget/dictquicklookup.lua @@ -218,7 +218,7 @@ function DictQuickLookup:init() if is_large_window then self.width = Screen:getWidth() - 2*Size.margin.default else - self.width = Screen:getWidth() - Screen:scaleBySize(80) + self.width = self.width or Screen:getWidth() - Screen:scaleBySize(80) -- user patchable end local frame_bordersize = Size.border.window local inner_width = self.width - 2*frame_bordersize