File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ Other changes:
99
99
- Default for unselected tabs: TabCloseButtonMinWidthUnselected = 0.0f (visible when hovered)
100
100
- Tabs: fixed middle-mouse-button to close tab not checking that close button
101
101
is hovered, merely it's visibility. (#8399, #8387) [@nicovanbentum]
102
+ - TextLink(), TextLinkOpenURL(): fixed honoring text baseline alignment.
103
+ (#8451, #7660) [@achabense]
102
104
- TextLinkOpenURL(): fixed default Win32 io.PlatformOpenInShellFn handler to
103
105
handle UTF-8 regardless of system regional settings. (#7660) [@achabense]
104
106
- Debug Tools: Added io.ConfigDebugHighlightIdConflictsShowItemPicker (defaults to true)
Original file line number Diff line number Diff line change @@ -1444,7 +1444,7 @@ bool ImGui::TextLink(const char* label)
1444
1444
const ImGuiID id = window->GetID(label);
1445
1445
const char* label_end = FindRenderedTextEnd(label);
1446
1446
1447
- ImVec2 pos = window->DC.CursorPos;
1447
+ ImVec2 pos(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset) ;
1448
1448
ImVec2 size = CalcTextSize(label, label_end, true);
1449
1449
ImRect bb(pos, pos + size);
1450
1450
ItemSize(size, 0.0f);
You can’t perform that action at this time.
0 commit comments