Make ClipsDescendants depend on AbsoluteSize instead of Size

In addition to a problem with rotated UIs, ClipsDescendants depends on the Size property of a UI instead of its AbsoluteSize. If the AbsoluteSize and Size are different (due to the usage of one of the UI constraints) things like this happen:

image
(With UIAspectRatioConstraint on)

This is happening because the Size internally is not changed by the UIAspectRatioConstraint, rather you’re supposed to use AbsoluteSize if you want to know the actual Size.

Removing the constraint will show what the Size property actually is.

image
(Without UIAspectRatioConstraint on)

This can be fixed by simply setting the Size to the AbsoluteSize (and of course doing some conversions in-between), but it would be more quality of life if the ClipsDescendants property depended on AbsoluteSize.

13 Likes

Hi @starmaq - thanks for reporting this issue! We plan on making improvements to ClipDescendants in the future, for now I’ve created a ticket for us to track this issue to ensure we resolve it. Thanks!

6 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.