DictQuickLookup: make the widget's width user patchable (#13497)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

This commit is contained in:
David
2025-04-12 06:50:58 +01:00
committed by GitHub
parent 09772fde3f
commit bf8adf2852

View File

@@ -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