-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
ImGuiWindowFlags_AlwaysAutoResize + Columns #1363
Comments
Columns use the available space (which you may force adjust with eg: SetCursorPosX or SetNextWindowContentsSize), they don't yet feed back their contents back into the window contents size.
Previously there was a bug which made only the last column declare its space outside the columns set, which would tends to make your use case non-zero width but still rather incorrect.
At the moment unfortunately the only solutions are either to grow the width yourself or ditch the AutoResize flag.
|
Can you elaborate on "grow the width yourself"? I would like to try to implement this. |
Just call SetCursorPosX() to do that.
|
Had the same problem, fixed it by specifying a constant width: ImGui::SetNextWindowSizeConstraints({230, -1}, {230, -1});
ImGui::Begin("SomeWindowWithTextColumns", nullptr, ImGuiWindowFlags_AlwaysAutoResize); This will set the height automatically and keep the width fixed. Not ideal but it works.
As the text shown has a constant width, this worked for me. |
This is a bug introduced in eab6333, pushed a fix now. Thanks. Test:
|
Closing this as Columns are a Legacy feature. |
In version 1.52 the behavior of
ImGuiWindowFlags_AlwaysAutoResize
has changed when using columns to arrange widgets - it looks like the auto resize doesn't account for the columns. This was working in version 1.50:But in 1.52 looks like this:
The text was updated successfully, but these errors were encountered: