mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
dict windlow fit to landscape screen width
This commit is contained in:
@@ -11,7 +11,6 @@ DictQuickLookup = InputContainer:new{
|
||||
|
||||
title_face = Font:getFace("tfont", 20),
|
||||
content_face = Font:getFace("cfont", 18),
|
||||
width = Screen:getWidth() - 100
|
||||
}
|
||||
|
||||
function DictQuickLookup:init()
|
||||
@@ -44,13 +43,13 @@ function DictQuickLookup:init()
|
||||
TextBoxWidget:new{
|
||||
text = self.dict,
|
||||
face = self.title_face,
|
||||
width = self.width,
|
||||
width = Screen:getWidth() - 100,
|
||||
},
|
||||
VerticalSpan:new{ width = 20 },
|
||||
TextBoxWidget:new{
|
||||
text = self.definition,
|
||||
face = self.content_face,
|
||||
width = self.width,
|
||||
width = Screen:getWidth() - 100,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user