mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Some small fixes.
This commit is contained in:
@@ -128,7 +128,7 @@ function UITable:addRow(data, ref, height)
|
||||
return
|
||||
end
|
||||
|
||||
local row = g_ui.createWidget(self.rowBaseStyle, self.dataSpace)
|
||||
local row = g_ui.createWidget(self.rowBaseStyle)
|
||||
if ref then row.ref = ref end
|
||||
if height then row:setHeight(height) end
|
||||
|
||||
@@ -152,6 +152,8 @@ function UITable:addRow(data, ref, height)
|
||||
row.onFocusChange = function(row, focused)
|
||||
if focused then self:selectRow(row) end
|
||||
end
|
||||
self.dataSpace:addChild(row)
|
||||
|
||||
table.insert(self.rows, row)
|
||||
return row
|
||||
end
|
||||
|
Reference in New Issue
Block a user