From 7dbb3c592f84ee7953802aa4aefbc93f5eb25b4b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 8 Jun 2024 13:15:39 +0200 Subject: [PATCH] Fine-tune achievements window size. --- profiler/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index c7d6a4ec..a7328bfb 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -1434,7 +1434,7 @@ static void DrawContents() if( showAchievements ) { - ImGui::SetNextWindowSize( ImVec2( 600 * dpiScale, 400 * dpiScale ), ImGuiCond_FirstUseEver ); + ImGui::SetNextWindowSize( ImVec2( 700 * dpiScale, 450 * dpiScale ), ImGuiCond_FirstUseEver ); ImGui::Begin( "Achievements List", &showAchievements, ImGuiWindowFlags_NoDocking ); ImGui::BeginTabBar( "###categories" ); auto categories = s_achievements.GetCategories(); @@ -1455,6 +1455,7 @@ static void DrawContents() if( ImGui::BeginTabItem( tmp ) ) { ImGui::Columns( 2 ); + ImGui::SetColumnWidth( 0, 300 * dpiScale ); DrawAchievements( c->items ); ImGui::NextColumn(); if( s_achievementItem )