Skip to content

Bug: Y-axis clipping uses resolution.width instead of resolution.heightΒ #160

@AltrixHub

Description

@AltrixHub

Description

In text_render.rs, the Y-axis clipping bounds incorrectly use resolution.width instead of resolution.height, causing text to be clipped when the window height exceeds the window width.

Location

https://github.com/grovesNL/glyphon/blob/2b3e0906a67e71f48b29131b25a81e46794967ca/src/text_render.rs#L154C17-L157C19

y: Bounds {
    min: text_area.bounds.top.max(0),
    max: text_area.bounds.bottom.min(resolution.width as i32), // BUG: should be resolution.height
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions