mirror of
https://github.com/hyblocker/OpenVR-SpaceCalibrator.git
synced 2026-10-28 22:01:07 +01:00
fix: padding issue
This commit is contained in:
1 file changed
+4
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user