Skip to content

Commit c3a348a

Browse files
committed
CollapsingHeader: Minor fix to align right side of frames (which is extruded past the Work/Contents rect) with clipping rectangle.
1 parent a8eb64f commit c3a348a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui_widgets.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5143,7 +5143,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
51435143
{
51445144
// Framed header expand a little outside the default padding
51455145
frame_bb.Min.x -= (float)(int)(window->WindowPadding.x * 0.5f - 1.0f);
5146-
frame_bb.Max.x += (float)(int)(window->WindowPadding.x * 0.5f - 1.0f);
5146+
frame_bb.Max.x += (float)(int)(window->WindowPadding.x * 0.5f);
51475147
}
51485148

51495149
const float text_offset_x = (g.FontSize + (display_frame ? padding.x*3 : padding.x*2)); // Collapser arrow width + Spacing

0 commit comments

Comments
 (0)