diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-06 00:29:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-06 00:29:39 +0200 |
commit | fd0b4fd2cb54a1e1c06737bfabedac36e2786a27 (patch) | |
tree | b744f9e4dcd9d129d9c137d70bf40db5c06c874f /editor | |
parent | 645d35a5e535411a70e65676387d396bc48a822d (diff) |
align text vertically
Diffstat (limited to 'editor')
-rw-r--r-- | editor/imgui-raii.cpp | 1 |
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); |