fix missing underline in config window

This commit is contained in:
chrox
2013-07-22 22:02:13 +08:00
parent 2b29c70250
commit 8c73c19e50

View File

@@ -204,16 +204,12 @@ UnderlineContainer = WidgetContainer:new{
}
function UnderlineContainer:getSize()
if self.dimen then
return { w = self.dimen.w, h = self.dimen.h }
else
return self:getContentSize()
end
return self:getContentSize()
end
function UnderlineContainer:getContentSize()
local contentSize = self[1]:getSize()
return {
return Geom:new{
w = contentSize.w,
h = contentSize.h + self.linesize + self.padding
}