mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-03 03:37:24 +01:00
Nav: NavProcessItem() updates current NavLayer. Basically we're hearing toward rebuilidng nav info from an id. (#787).
This commit is contained in:
parent
97851f7376
commit
ae1866c424
@ -2258,6 +2258,7 @@ static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGu
|
||||
if (g.NavId == id)
|
||||
{
|
||||
g.NavWindow = window; // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window.
|
||||
g.NavLayer = window->DC.NavLayerCurrent;
|
||||
g.NavIdIsAlive = true;
|
||||
g.NavIdTabCounter = window->FocusIdxTabCounter;
|
||||
window->NavRectRel[window->DC.NavLayerCurrent] = nav_bb_rel; // Store item bounding box (relative to window position)
|
||||
|
Loading…
Reference in New Issue
Block a user