mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
TreeNodeEx() wired the display-side ImGuiTreeNodeFlags_Selected flag (#581)
This commit is contained in:
parent
ab6bc05fc3
commit
ec6471ca87
2 changed files with 2 additions and 2 deletions
|
|
@ -5712,7 +5712,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
|
|||
else
|
||||
{
|
||||
// Unframed typed for tree nodes
|
||||
if (hovered)
|
||||
if (hovered || (flags & ImGuiTreeNodeFlags_Selected))
|
||||
RenderFrame(bb.Min, bb.Max, col, false);
|
||||
|
||||
RenderCollapseTriangle(bb.Min + ImVec2(padding.x, g.FontSize*0.15f + text_base_offset_y), opened, 0.70f, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue