Browse Source

Tables: fixed initial auto-sizing issue with synched-instances. (#8045, #7218)

pull/7650/merge
ocornut 4 weeks ago
parent
commit
f3d242a90d
  1. 1
      docs/CHANGELOG.txt
  2. 2
      imgui.h
  3. 2
      imgui_tables.cpp

1
docs/CHANGELOG.txt

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

2
imgui.h

@ -29,7 +29,7 @@
// Library Version
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
#define IMGUI_VERSION "1.91.4 WIP"
#define IMGUI_VERSION_NUM 19131
#define IMGUI_VERSION_NUM 19132
#define IMGUI_HAS_TABLE
/*

2
imgui_tables.cpp

@ -1160,7 +1160,7 @@ void ImGui::TableUpdateLayout(ImGuiTable* table)
}
// Don't decrement auto-fit counters until container window got a chance to submit its items
if (table->HostSkipItems == false)
if (table->HostSkipItems == false && table->InstanceCurrent == 0)
{
column->AutoFitQueue >>= 1;
column->CannotSkipItemsQueue >>= 1;

Loading…
Cancel
Save