This commit is contained in:
luk3yx 2020-02-03 16:24:57 +13:00
parent 97dd0dfc61
commit df49e369fa
1 changed files with 5 additions and 1 deletions

View File

@ -184,7 +184,11 @@ local function show_properties(elem, node)
local idx = window.Array.prototype.indexOf(elem.parentNode.children,
elem)
base = renderer.redraw_formspec(base)
show_properties(base.firstChild.children[idx])
if node.type == 'size' then
renderer.add_element(base, 'size')
elseif idx >= 0 then
show_properties(base.firstChild.children[idx])
end
end
function callbacks.send_to_back()