From 2d2c1af0196d8fe1009a64a889f1bef38ee7b3c9 Mon Sep 17 00:00:00 2001 From: Gauthier Quesnel Date: Thu, 11 Jul 2024 13:56:08 +0200 Subject: [PATCH] app: adds scrolling/clipping in specific area of component-ed --- app/gui/component-editor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/gui/component-editor.cpp b/app/gui/component-editor.cpp index 0aac22b7..9412c234 100644 --- a/app/gui/component-editor.cpp +++ b/app/gui/component-editor.cpp @@ -353,7 +353,15 @@ static void show_data(application& app, } if (ImGui::BeginTabItem("Specific", nullptr, flags)) { + if (not ImGui::BeginChild( + "##zone", ImGui::GetContentRegionAvail())) { + ImGui::EndChild(); + return; + } + element.show_selected_nodes(ed); + ImGui::EndChild(); + ImGui::EndTabItem(); }