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
My custom control is a simple tag, which is a colored background around around some text. In the below screenshots, note the test text is an ImGui::Text after ImGui::SameLine.
Without baseline offset:
With baseline offset:
Standalone, minimal, complete and verifiable example:(see #2261)
Hello,
For now I suggest you keep using your helper DummyEx(). I'll like to keep this open as I'm been unhappy with the amount of issues caused by text baseline features and I'd like to consider a better overall solution (maybe have baseline as a style var).
Version/Branch of Dear ImGui:
Version: 1.84.1
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Operating System: Windows
My Issue/Question:
For custom controls, it would be useful to have access to the baseline offset from
ImGui::Dummy
which would be passed down toItemSize
.imgui/imgui_widgets.cpp
Lines 1319 to 1328 in 2d0a6a4
Screenshots/Video
My custom control is a simple tag, which is a colored background around around some text. In the below screenshots, note the
test
text is anImGui::Text
afterImGui::SameLine
.Without baseline offset:
With baseline offset:
Standalone, minimal, complete and verifiable example: (see #2261)
The text was updated successfully, but these errors were encountered: