Nav: Fixed Collapse icon disappearing when Nav is disabled (since b2aaab873d) (#323)

This commit is contained in:
ocornut 2016-07-30 18:05:14 +02:00
parent 3672105b87
commit 4c4d750cae

View File

@ -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));