Skip to content

Commit f3d242a

Browse files
committed
Tables: fixed initial auto-sizing issue with synched-instances. (#8045, #7218)
1 parent c3629ad commit f3d242a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/CHANGELOG.txt

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Other changes:
6060
- IO: added 'void* platform_io.Renderer_RenderState' which is set during the
6161
ImGui_ImplXXXX_RenderDrawData() of standard backend to expose selected render
6262
state to draw callbacks. (#6969, #5834, #7468, #3590)
63+
- Tables: fixed initial auto-sizing issue with synched-instances. (#8045, #7218)
6364
- Backends: DX11, DX12, Vulkan, WGPU: expose selected state in ImGui_ImplXXXX_RenderState.
6465
structure during render loop. (#6969, #5834, #7468, #3590)
6566
- Backends: DX9, DX10, DX11, DX12, OpenGL, Vulkan, WGPU: Changed default texture sampler

imgui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// Library Version
3030
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
3131
#define IMGUI_VERSION "1.91.4 WIP"
32-
#define IMGUI_VERSION_NUM 19131
32+
#define IMGUI_VERSION_NUM 19132
3333
#define IMGUI_HAS_TABLE
3434

3535
/*

imgui_tables.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
11601160
}
11611161

11621162
// Don't decrement auto-fit counters until container window got a chance to submit its items
1163-
if (table->HostSkipItems == false)
1163+
if (table->HostSkipItems == false && table->InstanceCurrent == 0)
11641164
{
11651165
column->AutoFitQueue >>= 1;
11661166
column->CannotSkipItemsQueue >>= 1;

0 commit comments

Comments
 (0)