From 089304edbdbbb0a13865a9aedcbc0396700a3436 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 15 Dec 2021 17:37:24 -0500 Subject: [PATCH] orders scroll freeze --- src/gui/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 55da48ac1..5d6abe1ff 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -196,7 +196,8 @@ void FurnaceGUI::drawOrders() { char selID[16]; if (!ordersOpen) return; if (ImGui::Begin("Orders",&ordersOpen)) { - if (ImGui::BeginTable("OrdersTable",1+e->getChannelCount(e->song.system))) { + if (ImGui::BeginTable("OrdersTable",1+e->getChannelCount(e->song.system),ImGuiTableFlags_ScrollY)) { + ImGui::TableSetupScrollFreeze(0,1); ImGui::TableNextRow(); ImGui::TableNextColumn(); for (int i=0; igetChannelCount(e->song.system); i++) {