mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-22 01:54:21 +00:00
Nav: Fixed Collapse icon disappearing when Nav is disabled (since b2aaab873d) (#323)
This commit is contained in:
parent
3672105b87
commit
4c4d750cae
1 changed files with 1 additions and 1 deletions
|
|
@ -4947,7 +4947,7 @@ bool ImGui::Begin(const char* name, bool* p_open, const ImVec2& size_on_first_us
|
|||
|
||||
// Collapse button
|
||||
const ImVec2 text_size = CalcTextSize(name, NULL, true);
|
||||
if (!(flags & ImGuiWindowFlags_NoCollapse) && g.IO.NavUsable)
|
||||
if (!(flags & ImGuiWindowFlags_NoCollapse))
|
||||
{
|
||||
ImGuiID id = window->GetID("#COLLAPSE");
|
||||
ImRect bb(window->Pos + style.FramePadding + ImVec2(1,1), window->Pos + style.FramePadding + ImVec2(g.FontSize,g.FontSize) - ImVec2(1,1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue