Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImGui::Columns() and ImGuiWindowFlags_AlwaysAutoResize #5733

Closed
Kiojeen opened this issue Sep 29, 2022 · 1 comment
Closed

ImGui::Columns() and ImGuiWindowFlags_AlwaysAutoResize #5733

Kiojeen opened this issue Sep 29, 2022 · 1 comment

Comments

@Kiojeen
Copy link

Kiojeen commented Sep 29, 2022

Hi, I am using ImGui::Columns() and it looks that ImGuiWindowFlags_AlwaysAutoResize only resizes the window to the first column hiding the second one.
So I wonder if I am missing something or if there is a way around this.
Thanks.

my code looks like this..

if(ImGui::Begin(id, nullptr, 64))
{
	ImGui::Columns(2, "###clmn1", false);
	ImGui::SetColumnOffset(1, 115);
        // content
        ImGui::NextColumn();
        // content.
        ImGui::End();
}
@ocornut
Copy link
Owner

ocornut commented Sep 29, 2022

See #2142 #1363
Unfortunately Columns() is a legacy API which we don’t really plan to upgrade anymore, as Tables are the full features replacement to them. You should really use Tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants