mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
rework menus
This commit is contained in:
@@ -291,9 +291,9 @@ The newly added child widget.
|
||||
--]]--
|
||||
function Widget:addChild (data)
|
||||
local layout = self.layout
|
||||
local child = Widget(layout, data or {})
|
||||
local child = data and data.isWidget and data or Widget(layout, data or {})
|
||||
|
||||
table.insert(self, child)
|
||||
self[#self + 1] = child
|
||||
child.parent = self
|
||||
child.layout = self.layout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user