mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
DictQuickLookup: make the widget's width user patchable (#13497)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user