Skip to content

Tables: add reset column sizing option - #9605

Closed
flodrick wants to merge 1 commit into
ocornut:masterfrom
flodrick:issue-9523-reset-table-column-sizing
Closed

flodrick wants to merge 1 commit into
ocornut:masterfrom
flodrick:issue-9523-reset-table-column-sizing

Conversation

@flodrick

@flodrick flodrick commented Nov 2, 2026

Copy link
Copy Markdown

Closes #9523.

Adds a Reset > Reset column sizing action that restores fixed widths and stretch weights authored through TableSetupColumn(). Automatically-sized columns return to content fitting. The existing all-columns content-fit action is now labeled consistently, and the tables context-menu demo shows mixed fixed/stretch sizing.

Verification: C++11 syntax-only compilation for imgui.cpp, imgui_tables.cpp, and imgui_demo.cpp; focused runtime assertions for fixed width, stretch weight, and auto-fit restoration. ASan/UBSan could not link because the local MinGW toolchain does not include those runtimes.

@ocornut

ocornut commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Hello,
Thanks for your PR.
Is the PR AI assisted? please clarify.

@ocornut ocornut added the settings .ini persistance label Nov 10, 2026
ocornut added a commit that referenced this pull request Nov 10, 2026
…sizing policy entry"Size all columns to auto". (#9523, #9605)

Amend Demo->Columns Widths to showcase.
@ocornut

ocornut commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Closing as per #9523 (commit ac3b6c3).

In case you are interested to make further PR, I'll give a bit of feedback on this:

  • the PR message appears AI generated, which generally lower trust in user, especially at it is lacking a disclose.
  • if both menu items would have the same name they should share same enum instead of keeping both.
  • renaming both to same name is misleading/incorrect anyhow.
  • TableApplyQueuedRequests missing a comment edit.

ac3b6c3 is otherwise fairly close.
Thank you!

@ocornut ocornut closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Table Column context menu item to reset to designed size.

2 participants