tiffany352 / Roblox-Tag-Editor

A plugin for manipulating CollectionService in Roblox Studio.
https://devforum.roblox.com/t/tag-editor-plugin/101465
Other
59 stars 14 forks source link

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

Open W-Drew opened 6 years ago

W-Drew commented 6 years ago

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.