BryanChi / BryanChi-FX-Devices

6 stars 3 forks source link

Container: Removing an empty container crashes #40

Closed Suzuki-Re closed 5 months ago

Suzuki-Re commented 5 months ago
...\BryanChi_FX_Devices\src\Functions\General Functions.lua:4539: ImGui_EndChild: ImGui assertion failed: 0 && "Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries. Please submit an item e.g. Dummy() to validate extent."

It seems to be about those lines in createFXWindow function and SetCursorPos. There's no SetCursorScreenPos.

if ImGui.BeginChild(ctx, FX_Name .. FX_Idx, Width, 220, nil, ImGui.WindowFlags_NoScrollbar | ImGui.WindowFlags_NoScrollWithMouse) and not Hide then ----START CHILD WINDOW------

~~~~~~~~~~~~~~~~~~~~~abbreviated~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                ImGui.EndChild(ctx)
            end
Suzuki-Re commented 5 months ago

Adding ImGui.Dummy fixes the issue for now

ImGui.Dummy(ctx, 100, 100)
ImGui.EndChild(ctx)