I made a UI with a Rectangle and a textblock using resizetofit as well as left and right padding. The Rectangle has adaptWidthToChildren set to true so it will resize whenever the text content changes.
However when the text’s width decreases, there is a weird corruption where it looks like a piece of the old rectangle remains. This only gets fixed when you resize the browser window. Here is a simple playground example. As soon as the text changes from “Hello World” to “Hello” a bit of the rectangle on the right stays rendered even though it resized. I assume this is a bug. Is there anything I can do to get around this right now?