mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
cleanup
This commit is contained in:
@@ -93,7 +93,7 @@ show = function (self)
|
||||
local tw = child.fontData:getAdvance(child[2].text)
|
||||
+ pad * 2 + h
|
||||
local kw = child.fontData:getAdvance(child[3].text)
|
||||
+ pad * 2
|
||||
+ pad * 4
|
||||
textWidth = math.max(textWidth, tw)
|
||||
keyWidth = math.max(keyWidth, kw)
|
||||
end
|
||||
@@ -144,6 +144,7 @@ return function (self)
|
||||
end
|
||||
|
||||
if isSubmenu then
|
||||
key = #self.items > 0 and '>' or key
|
||||
self.height = self.fontData:getLineHeight() + pad * 2
|
||||
self.flow = 'x'
|
||||
self:addChild({ icon = icon, width = self.height })
|
||||
|
||||
Reference in New Issue
Block a user