-
-
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
Regression with Columns() + AlwaysAutoResize between 1.51 and 1.53 #1444
Comments
The problem relates to that change: "Columns: Fixed the right-most column from registering its content width to the parent window, which led to various issues when using auto-resizing window or e.g. horizonal scrolling. (#519, #125, #913)" The old logic was unfortunately causing way too much trouble, e.g. moving the right column would tend to lead into into a feedback loop, and it was actually related to a bug which would perform nicely in your use case (only the right-most column was extending the contents sizes, and since you are positioning all other offsets this is all you need. But if you don't set the offset it wouldn't make much sense). Right now one workaround is to do: I'm not sure what to do about it right now. I can expose something similar to the old behavior in the |
Thanks for your quick reply. |
As discussed, I'm adding a temporary internal.h flag The behavior is really odd because the "maximum cursor X position" bleeds outside of columns, affecting the parent window resize behavior, but the columns themselves aren't resized. It worked in a few very specific cases like yours. You may also use I'll keep all of this in mind when redesigning the Columns (#125) in the future. Test code:
|
It works like a charm with 2 lines modified, thanks ! |
…ColumnFlags_*. (#125, #513, #913, #1204, #1444, #2142, #2707) Affected: ImGuiColumnsFlags_None, ImGuiColumnsFlags_NoBorder, ImGuiColumnsFlags_NoResize, ImGuiColumnsFlags_NoPreserveWidths, ImGuiColumnsFlags_NoForceWithinWindow, ImGuiColumnsFlags_GrowParentContentsSize. Added redirection enums. Did not add redirection type.
Hello,
I migrated some applications using ImGui from version 1.51 to latest 1.53, and I am facing a little bug related to tooltips using
ImGuiWindowFlags_AlwaysAutoResize
flag when drawing columns inside.In the latest version 1.53, the tooltips are truncated, as if they were considering only the first row and not the 3 columns which inside :
Here is a source code to repro :
In version 1.51, it was working well.
Best regards,
The text was updated successfully, but these errors were encountered: