You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler: VS 2019
Operating System: Windows 10
My Issue/Question:
ImGui::DragFloat centers the input value when not editing it. On the other hand ImGui::InputFloat aligns to the left. Is there a simple way to center the value in ImGui::InputFloat as for ImGui::DragFloat?
Thanks!
The text was updated successfully, but these errors were encountered:
As specified in the question I think desired intent is to center (or right-align) value contents when NOT editing.
However as the relative mouse position at the time of activating an InputText() matters for selecting text, I don't think there's a 1 to 1 mapping with that Drag/Slider does, and the PR in #1442 is not a sufficient solution, but I presume we could work out a way to perform the alignment as least for single-line text.
Version/Branch of Dear ImGui:
Version: 1.82 WIP
Branch: Docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler: VS 2019
Operating System: Windows 10
My Issue/Question:
ImGui::DragFloat centers the input value when not editing it. On the other hand ImGui::InputFloat aligns to the left. Is there a simple way to center the value in ImGui::InputFloat as for ImGui::DragFloat?
Thanks!
The text was updated successfully, but these errors were encountered: