From a5a7cebd735a7127faa0b0bacb91a278f270709d Mon Sep 17 00:00:00 2001 From: chrox Date: Tue, 30 Apr 2013 18:43:39 +0800 Subject: [PATCH] dict windlow fit to landscape screen width --- frontend/ui/widget/dict.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/ui/widget/dict.lua b/frontend/ui/widget/dict.lua index 5716bdeda..1a8922ea5 100644 --- a/frontend/ui/widget/dict.lua +++ b/frontend/ui/widget/dict.lua @@ -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, } } }