summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--editor/imgui-raii.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/imgui-raii.cpp b/editor/imgui-raii.cpp
index 4c4b5911..dd341e2e 100644
--- a/editor/imgui-raii.cpp
+++ b/editor/imgui-raii.cpp
@@ -170,6 +170,7 @@ const char* label_left_(StringView label, char* buf, size_t buf_len, float width
{
std::snprintf(buf, buf_len, "##%s", label.data());
float x = ImGui::GetCursorPosX();
+ ImGui::AlignTextToFramePadding();
ImGui::TextEx(label.data(), label.data() + label.size());
ImGui::SameLine();
ImGui::SetCursorPosX(x + width + ImGui::GetStyle().ItemInnerSpacing.x);