Roblox-Tag-Editor icon indicating copy to clipboard operation
Roblox-Tag-Editor copied to clipboard

Maximum re-entry depth exceeded caused by canvas > widget size

Open W-Drew opened this issue 6 years ago • 0 comments

Maximum event re-entrancy depth exceeded for Instance.AbsoluteContentSizeChanged While entering function defined in script 'Plugin_948084095.TagEditor.Plugin.Components.ScrollingFrame', line 13

Responsible code:

local function update()
    local cs = rbx.AbsoluteContentSize
    rbx.Parent.CanvasSize = UDim2.new(0, 0, 0, cs.y)
end
rbx:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(update)
update()

I'm guessing setting CanvasSize changes AbsoluteContentSize when the canvas's size is > the scrolling frame's.

W-Drew avatar Aug 09 '18 15:08 W-Drew