summaryrefslogtreecommitdiff
path: root/src/ui/ui_invoices.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-12 17:01:55 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-12 17:01:55 +0100
commit6605cba2d6dc66cb4bf96fac21b32b903ea1a1b3 (patch)
treedc4eae8fdc79c87e7f0462429e389e40681204bc /src/ui/ui_invoices.cpp
parent6d1c29533ab455dabe7e7b4f0dd31d5a11f02048 (diff)
refactoringsHEADmaster
Diffstat (limited to 'src/ui/ui_invoices.cpp')
-rw-r--r--src/ui/ui_invoices.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp
index 70db412..1c14d77 100644
--- a/src/ui/ui_invoices.cpp
+++ b/src/ui/ui_invoices.cpp
@@ -397,10 +397,13 @@ static void _reset_to_default_view()
static void _draw_activity_sidepanel()
{
ImGui::SameLine();
- ImGui::SeparatorEx(1 << 1, 1.0f);
- ImGui::SameLine();
- ImGui::BeginChild("##historyPanel", ImVec2(sidepanel_width, 0), ImGuiChildFlags_None);
+ ImVec2 area = ImGui::GetContentRegionAvail();
+
+ ImGui::SetNextWindowPos(ImVec2(ImGui::GetCursorScreenPos().x, ImGui::GetCursorScreenPos().y));
+ ImGui::SetNextWindowSize(ImVec2(sidepanel_width, area.y));
+
+ ImGui::Begin("##historyPanel", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse);
{
for (u32 i = 0; i < activity_count; i++)
{
@@ -423,7 +426,7 @@ static void _draw_activity_sidepanel()
}
}
- ImGui::EndChild();
+ ImGui::End();
}
static void draw_invoice_update()