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

This commit is contained in:
Lorenzo Cogotti 2022-09-02 12:26:17 +02:00
parent 07b8252c22
commit 05e55add65
1 changed files with 1 additions and 1 deletions

View File

@ -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