Skip to content

ClipRect is incorrect when node canvas is the only active widget of a window drawing to screen. #341

Description

@shadoworld56

https://github.com/user-attachments/assets/341364ec-9fd4-4480-a6e6-68ef2da765bd
From the video you can see the node canvas renders correctly when the text widget above it is being rendered but creates an incorrect clipping rect when the element moves off the screen. If the text element is not included the node canvas also has incorrect clipping rect.
This is using Imgui 1.92.8 and SDL3 GPU API. Digging around I thought this maybe was an issue with DPI but it seems everything else in Imgui is rendering correctly. It almost seems like the node canvas is trying to do the window clipping calculation and then sending this to the window where it is instead expecting the node canvas to make clipping calculations in respect to the window it is in.

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