Hello!
I’m making a Calendar. I have a VisualElement for each day and a Label inside each element to represent the day of the month. The Labels are centered via Position: Absolute, Top 50% etc. etc.
The first render is fine, but when I switch months and I loop through the elements to change the Label text, the Label ends up as misaligned, sometimes even being cut in half. VisualElement.MarkDirtyRepaint doesn’t seem to work, unless I’m misunderstanding its usage.
Now I ended up using a somewhat hacky solution, I just set the Display to none and then next frame I set it to Flex and all is well. But as said, the feels a bit hacky and although it’s not the end of the world I could do without the little flicker that occurs with this solution (as well as the flicker becoming even more apparent at lower framerates).
Is there some other way to circumvent this issue?
