[widget] Turn recalculateBounds() into a method, as it should be.

master
Lorenzo Cogotti 2 years ago
parent 07b8252c22
commit 05e55add65

@ -70,7 +70,7 @@ function Widget:isFocused()
return self.ui.focused == self
end
function Widget.recalculateBounds()
function Widget:recalculateBounds()
local widget = self.parent
while widget ~= nil do
local rx,ry,rw,rh = widget.x,widget.y,-1,-1

Loading…
Cancel
Save