Skip to content

Commit

Permalink
app: adds scrollbar n project window hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
quesnel committed Aug 21, 2024
1 parent a718e9b commit c396c77
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/gui/project-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,14 @@ void project_window::show() noexcept
return;
}

constexpr ImGuiTreeNodeFlags flags =
ImGuiTreeNodeFlags_CollapsingHeader | ImGuiTreeNodeFlags_DefaultOpen;

if (ImGui::CollapsingHeader("Hierarchy", flags))
show_project_hierarchy(app, *parent);
if (ImGui::CollapsingHeader("Hierarchy",
ImGuiTreeNodeFlags_CollapsingHeader |
ImGuiTreeNodeFlags_DefaultOpen)) {
if (ImGui::BeginChild("##zone", ImGui::GetContentRegionAvail())) {
show_project_hierarchy(app, *parent);
}
ImGui::EndChild();
}
}

} // namespace irt

0 comments on commit c396c77

Please sign in to comment.