-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Closed
Description
Version/Branch of Dear ImGui:
Version 1.91.8
Back-ends:
Any
Compiler, OS:
Any
Details:
Unlike normal text lines, ImGui::TextLink
is not recognizing vertical alignment.
Related code:
ImGui::Text
:
Line 174 in 9c2876b
const ImVec2 text_pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset); |
ImGui::TextLink
:Line 1447 in 9c2876b
ImVec2 pos = window->DC.CursorPos; |
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
void issue() {
if (ImGui::Begin("Issue")) {
ImGui::AlignTextToFramePadding();
ImGui::Text("123");
ImGui::SameLine();
ImGui::Text("456");
ImGui::AlignTextToFramePadding();
ImGui::Text("123");
ImGui::SameLine();
ImGui::TextLink("456");
ImGui::Button("123");
ImGui::SameLine();
ImGui::Text("456");
ImGui::Button("123");
ImGui::SameLine();
ImGui::TextLink("456");
}
ImGui::End();
}
ocornut