diff --git a/gfx/element.lua b/gfx/element.lua index 3504a98..cf04ba8 100644 --- a/gfx/element.lua +++ b/gfx/element.lua @@ -32,7 +32,7 @@ function Element:new(o) end function Element:draw() - Logger:trace("draw", self) + Logger:trace("draw") local dirty = self:_isDirty() if dirty then local win = self:_getWindow() @@ -80,7 +80,7 @@ function Element:setY(y) end function Element:setParent(parent) - Logger:trace("setParent", self, parent) + Logger:trace("setParent", self:getId(), parent, self.parent ~= parent) if self.parent ~= parent then self.parent = parent self:setDirty() @@ -212,6 +212,7 @@ function Element:setOnClick(onClick) end function Element:_reload() + Logger:trace("_reload", self) if self.parent ~= nil then local win = window.create(self.parent, self:getX(), self:getY(), self:getWidth(), self:getHeight(), self:isVisible()) win.setBackgroundColor(self:getBgColor())