Skip to content

ImGuiChildFlags_ResizeX | ImGuiChildFlags_AutoResizeY Together #8690

@clarity-coder

Description

@clarity-coder

Version/Branch of Dear ImGui:

Latest master branch

Back-ends:

imgui_impl_dx11.cpp + imgui_impl_win32.cpp

Compiler, OS:

Windows 11 + MSVC 2022

Full config/build information:

No response

Details:

My Issue:

Even tho ResizeX and AutoResizeY child flags are applied none of them seem to take affect when being used together, is this an ImGui issue or am I doing something wrong?

Screenshots/Video:

Image

Example code:

Begin("test", &show, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_AlwaysAutoResize);
{
    BeginChild("content", ImVec2{ 200.0f, 0.0f }, ImGuiChildFlags_ResizeX | ImGuiChildFlags_AutoResizeY);
    {
        Text("Test1");
        Text("Test2");
        Text("Test3");
        Text("Test4");
        Text("Test5");
        Text("Test6");
        Text("Test7");
        Text("Test8");
    }
    EndChild();
}
End();

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions