[widget] Turn recalculateBounds() into a method, as it should be.
This commit is contained in:
parent
07b8252c22
commit
05e55add65
|
@ -70,7 +70,7 @@ function Widget:isFocused()
|
||||||
return self.ui.focused == self
|
return self.ui.focused == self
|
||||||
end
|
end
|
||||||
|
|
||||||
function Widget.recalculateBounds()
|
function Widget:recalculateBounds()
|
||||||
local widget = self.parent
|
local widget = self.parent
|
||||||
while widget ~= nil do
|
while widget ~= nil do
|
||||||
local rx,ry,rw,rh = widget.x,widget.y,-1,-1
|
local rx,ry,rw,rh = widget.x,widget.y,-1,-1
|
||||||
|
|
Loading…
Reference in New Issue