-
-
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
Synced tables with a scrollbar have different column's width #5920
Comments
…ot all) instances have a vertical scrollbar. (#5920)
Thank you for reporting this issue and the repro. I have now pushed a fix for this 317b33d I have tried 3 approach: (1) (2) (3) For now it seems to work and passes our existing test suite. |
Pushed 68a05e3 which fixes a (rarely manifesting) bug with the implementation of this: when a table stops using _ScrollY flag the last scrollbar width was accounted for. I don't believe it would have affected much real world code. |
Two synced tables with a ImGuiTableFlags_SizingStretchSame and ImGuiTableFlags_ScrollY flags set, have different columns widths if the first table has a vertical scrollbar:
synced_tables_different_widths.mp4
Maybe this is a correct behavior and not a bug, but if I want to align those columns contents, I have to add additional spaces or do some extra layout calculations to position them correctly.
Ideally, in this particular use case there would be a way to freeze the bottom row, so it wouldn't be necessary to create those synced tables.
Code example in Go language:
The text was updated successfully, but these errors were encountered: