Skip to content

Small error in TreeNodeBehavior #6549

@BobbyAnguelov

Description

@BobbyAnguelov

Tiny typo on line 6257 (in docking branch) dealing with the rendering of leaf text without a bullet in a framed item does not take the padding into account:

else // Leaf without bullet, left-adjusted text
    text_pos.x -= text_offset_x;

should probably read:

else // Leaf without bullet, left-adjusted text
    text_pos.x -= text_offset_x - padding.x;

This would be consistent with all the other rendering positions in that function

Metadata

Metadata

Assignees

No one assigned

    Labels

    treetree nodes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions