mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Tables: fixed an issue with TableSetupColumn() overriding ini data. (#7934)
Amend 05742f9b6f
This commit is contained in:
parent
de4f77b0ac
commit
6e30c42101
1 changed files with 1 additions and 1 deletions
|
|
@ -1637,7 +1637,7 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo
|
||||||
if (table->IsInitializing)
|
if (table->IsInitializing)
|
||||||
{
|
{
|
||||||
ImGuiTableFlags init_flags = ~0;
|
ImGuiTableFlags init_flags = ~0;
|
||||||
if (column->WidthRequest >= 0.0f && column->StretchWeight >= 0.0f)
|
if (column->WidthRequest >= 0.0f || column->StretchWeight >= 0.0f)
|
||||||
init_flags &= ~ImGuiTableFlags_Resizable;
|
init_flags &= ~ImGuiTableFlags_Resizable;
|
||||||
TableInitColumnDefaults(table, column, init_flags);
|
TableInitColumnDefaults(table, column, init_flags);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue