mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-12 02:00:58 +01:00
BeginChild/Tables: Fixed BeginChild temporary activation id collision. Fixes regression in 1.89.6 leading to the first column of tables with either ScrollX or ScrollY flags from being impossible to resize. (#6503)
This commit is contained in:
parent
a134892a3d
commit
4fab72b40e
@ -34,6 +34,11 @@ HOW TO UPDATE?
|
||||
VERSION 1.89.7 WIP (In Progress)
|
||||
-----------------------------------------------------------------------
|
||||
|
||||
Other changes:
|
||||
|
||||
- Tables: Fixed a regression in 1.89.6 leading to the first column of tables with either
|
||||
ScrollX or ScrollY flags from being impossible to resize. (#6503)
|
||||
|
||||
|
||||
-----------------------------------------------------------------------
|
||||
VERSION 1.89.6 (Released 2023-05-31)
|
||||
|
@ -5322,7 +5322,7 @@ bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b
|
||||
|
||||
// Process navigation-in immediately so NavInit can run on first frame
|
||||
// Can enter a child if (A) it has navigatable items or (B) it can be scrolled.
|
||||
const ImGuiID temp_id_for_activation = (id + 1);
|
||||
const ImGuiID temp_id_for_activation = ImHashStr("##Child", 0, id);
|
||||
if (g.ActiveId == temp_id_for_activation)
|
||||
ClearActiveID();
|
||||
if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY))
|
||||
|
Loading…
Reference in New Issue
Block a user