enisn / UraniumUI

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

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

Open zhangtuoyu opened 1 month ago

zhangtuoyu commented 1 month ago

Code:

Cfun1 commented 1 month 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 1 month 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