mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bugfix: update width of dict window in readerdictionary
This commit is contained in:
@@ -38,6 +38,7 @@ function ReaderDictionary:showDict(results)
|
||||
dialog = self.dialog,
|
||||
results = results,
|
||||
dictionary = self.default_dictionary,
|
||||
width = Screen:getWidth() - scaleByDPI(120),
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ DictQuickLookup = InputContainer:new{
|
||||
title_face = Font:getFace("tfont", 20),
|
||||
word_face = Font:getFace("tfont", 18),
|
||||
content_face = Font:getFace("cfont", 18),
|
||||
width = Screen:getWidth() - scaleByDPI(100),
|
||||
width = nil,
|
||||
|
||||
title_padding = scaleByDPI(5),
|
||||
title_margin = scaleByDPI(2),
|
||||
@@ -126,8 +126,8 @@ function DictQuickLookup:update()
|
||||
}
|
||||
|
||||
self.dict_frame = FrameContainer:new{
|
||||
radius = scaleByDPI(8),
|
||||
bordersize = scaleByDPI(3),
|
||||
radius = 8,
|
||||
bordersize = 3,
|
||||
padding = 0,
|
||||
margin = 0,
|
||||
background = 0,
|
||||
|
||||
Reference in New Issue
Block a user