@@ -6794,6 +6794,8 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
6794
6794
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
6795
6795
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding);
6796
6796
RenderNavCursor(frame_bb, id, nav_render_cursor_flags);
6797
+ if (span_all_columns && !span_all_columns_label)
6798
+ TablePopBackgroundChannel();
6797
6799
if (flags & ImGuiTreeNodeFlags_Bullet)
6798
6800
RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col);
6799
6801
else if (!is_leaf)
@@ -6814,6 +6816,8 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
6814
6816
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false);
6815
6817
}
6816
6818
RenderNavCursor(frame_bb, id, nav_render_cursor_flags);
6819
+ if (span_all_columns && !span_all_columns_label)
6820
+ TablePopBackgroundChannel();
6817
6821
if (flags & ImGuiTreeNodeFlags_Bullet)
6818
6822
RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col);
6819
6823
else if (!is_leaf)
@@ -6825,9 +6829,6 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
6825
6829
if (draw_tree_lines)
6826
6830
TreeNodeDrawLineToChildNode(ImVec2(text_pos.x - text_offset_x + padding.x, text_pos.y + g.FontSize * 0.5f));
6827
6831
6828
- if (span_all_columns && !span_all_columns_label)
6829
- TablePopBackgroundChannel();
6830
-
6831
6832
// Label
6832
6833
if (display_frame)
6833
6834
RenderTextClipped(text_pos, frame_bb.Max, label, label_end, &label_size);
0 commit comments