fix: padding issue

This commit is contained in:
Hyblocker committed 2026-05-26 23:02:59 +02:00
1 parent 3c282ccfa2
commit 2f0a642bfe
1 file changed
+4 -2
+4 -2
View File
@@ -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;