From 2f0a642bfec8cc2efc82a7c02aff07369cd64fc8 Mon Sep 17 00:00:00 2001 From: Hyblocker Date: Tue, 26 May 2026 23:02:59 +0200 Subject: [PATCH] fix: padding issue --- src/overlay/user_interface.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/overlay/user_interface.cpp b/src/overlay/user_interface.cpp index ec74e9f..7b0e8a8 100644 --- a/src/overlay/user_interface.cpp +++ b/src/overlay/user_interface.cpp @@ -266,7 +266,8 @@ namespace spacecal { ImGui::NewLine(); } - float width = ImGui::GetWindowContentRegionWidth(), scale = 1.0f / 2.0f; + float width = ImGui::GetWindowContentRegionWidth() - style.FramePadding.x * 2.0f; + float scale = 1.0f / 2.0f; if (calibration.isValidCalibration) { width -= style.FramePadding.x * 4.0f; @@ -374,7 +375,8 @@ namespace spacecal { ImGui::NewLine(); } - float width = ImGui::GetWindowContentRegionWidth(), scale = 1.0f / 2.0f; + float width = ImGui::GetWindowContentRegionWidth() - style.FramePadding.x * 2.0f; + float scale = 1.0f / 2.0f; if (calibration.isValidCalibration) { width -= style.FramePadding.x * 4.0f;