BugFix Minor UI corrections and bugs fixed

This commit is contained in:
Bruno Herbelin
2024-01-01 17:54:27 +01:00
parent 578a72f560
commit b599fbf88d
10 changed files with 120 additions and 73 deletions

View File

@@ -113,7 +113,7 @@ bool ImGuiToolkit::ButtonSwitch(const char* label, bool* toggle, const char* too
// layout
float frame_height = ImGui::GetFrameHeight();
float frame_width = ImGui::GetContentRegionAvail().x;
float frame_width = MAX(ImGui::GetContentRegionAvail().x, 2);
float height = ImGui::GetFrameHeight() * 0.75f;
float width = height * 1.6f;
float radius = height * 0.50f;