enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.19k stars 143 forks source link

After modifying the Title property of the TextField control, the appearance cannot be refreshed #715

Open zhangtuoyu opened 4 months ago

zhangtuoyu commented 4 months ago

Code:

Cfun1 commented 4 months ago

@enisn any thoughts about this, i have attempted to call Invalidate() (hoping it will enforce the border view to be redrawn/ remeasured based on the new Title value) on both base objects or it children but without success. But something definitely wrong, from what I have noticed, it's dedicates the space (border) based on the previous value of Title, for instance;

Title View
Abcd ---- Abcd --------
Abcdefghijk ---- Abcdefghijk --------
Abcd ---- Abcd           ---

I will try to provide a test repo if necessary.

enisn commented 4 months ago

I could reproduce a similar behavior. It delays rendering for optimization but it seems it causes this problem. I'll check what can I do on it 👍 uraniumui-title-repro