From fd8390c771eba807c21d47681a78e803543526b3 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 6 Dec 2020 11:22:04 +0200 Subject: [PATCH] ggwaave-gui : minor --- examples/ggwave-gui/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ggwave-gui/common.h b/examples/ggwave-gui/common.h index 81659f5..80d2dca 100644 --- a/examples/ggwave-gui/common.h +++ b/examples/ggwave-gui/common.h @@ -465,7 +465,7 @@ void renderMain() { if (showScrollToBottom) { auto posSave = ImGui::GetCursorScreenPos(); auto butSize = ImGui::CalcTextSize(ICON_FA_ARROW_CIRCLE_DOWN); - ImGui::SetCursorScreenPos({ wPos0.x + wSize.x - 5.0f*butSize.x, wPos0.y + wSize.y - 3.0f*butSize.y }); + ImGui::SetCursorScreenPos({ wPos0.x + wSize.x - 2.0f*butSize.x - 2*style.ItemSpacing.x, wPos0.y + wSize.y - 2.0f*butSize.y - 2*style.ItemSpacing.y }); if (ImGui::Button(ICON_FA_ARROW_CIRCLE_DOWN)) { scrollMessagesToBottom = true; }