mirror of
https://codeberg.org/1414codeforge/yui.git
synced 2025-06-05 22:19:11 +02:00
[widget] Turn recalculateBounds() into a method, as it should be.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user