Small bugfix for frames

Small bugfix for frames when using setZIndex after objects got added. Reason was because the frame didn't add the events to it's parent.
This commit is contained in:
Robert Jelic
2022-11-22 18:28:03 +01:00
committed by GitHub
parent 8f2e191fe3
commit 37dde881ad

View File

@@ -371,7 +371,17 @@ return function(name, parent, pTerm, basalt)
getType = function(self)
return objectType
end;
end,
setZIndex = function(self, newIndex)
base.setZIndex(self, newIndex)
for k,v in pairs(activeEvents)do
if(v)then
self.parent:addEvent(k, self)
end
end
return self
end,
setFocusedObject = function(self, obj)
if(focusedObject~=obj)then