From 99c5f5735c1f64687c0403dbc220df0a252fbaa4 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 17 Jul 2015 07:08:51 -0600 Subject: [PATCH] Tweak button sizes --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index b3a1f0d5..7e338e4e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -11801,7 +11801,7 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::NextColumn(); char buf[32]; sprintf(buf, "%08x", i*5731); - ImGui::Button(buf); + ImGui::Button(buf, ImVec2(ImGui::GetContentRegionMax().x - ImGui::GetCursorPosX(), 0.0f)); } ImGui::EndChild(); ImGui::PopStyleVar();