Skip to content

Commit e648dbb

Browse files
committed
Tables: fixed auto-width columns when using synced-instances of same table. (#7218)
Amend d3c3514
1 parent 6aade69 commit e648dbb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ Other changes:
7171
(e.g. in our testing, handling of a 1 MB text buffer is now 3 times faster in VS2022 Debug build).
7272
This is the first step toward more refactoring. (#7925) [@alektron, @ocornut]
7373
- InputText: added CJK double-width punctuation to list of separators considered for CTRL+Arrow.
74+
- Tables: fixed auto-width columns when using synced-instances of same table. The previous fix
75+
done in v1.90.5 was incomplete. (#7218)
7476
- Tables: fixed assertion related to inconsistent outer clipping when sizes are not rounded. (#7957) [@eclbtownsend]
7577
- Tables: fixed assertion with tables with borders when clipped by parent. (#6765, #3752, #7428)
7678
- Windows: fixed an issue where double-click to collapse could be triggered even while another

imgui_tables.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
866866

867867
// Calculate ideal/auto column width (that's the width required for all contents to be visible without clipping)
868868
// Combine width from regular rows + width from headers unless requested not to.
869-
if (!column->IsPreserveWidthAuto)
869+
if (!column->IsPreserveWidthAuto && table->InstanceCurrent == 0)
870870
column->WidthAuto = TableGetColumnWidthAuto(table, column);
871871

872872
// Non-resizable columns keep their requested width (apply user value regardless of IsPreserveWidthAuto)

0 commit comments

Comments
 (0)