core icon indicating copy to clipboard operation
core copied to clipboard

Children do not render parent gradient background correctly

Open kkoreilly opened this issue 1 year ago • 1 comments

Describe the bug

Children re-render the entire parent gradient background compressed in their bounding box instead of rendering the relevant section consistently with the parent.

How to reproduce

Look at the gradient example in the frame docs.

Example code

No response

Relevant output

No response

Platform

macOS

kkoreilly avatar Jul 23 '24 22:07 kkoreilly

The issue here is that the gradient is updated in various places in paint based on the current bounding box, so somehow we need to inject the correct parent bounds into that.

kkoreilly avatar Jul 24 '24 05:07 kkoreilly

The same thing applies for other non-uniform backgrounds, such as images.

kkoreilly avatar Nov 18 '24 05:11 kkoreilly