enisn / UraniumUI

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

Title text for text fields animates/ goes up every time page under tab is visited. #738

Closed ketakidevendra closed 2 months ago

ketakidevendra commented 3 months ago

If I have 2 Tabs, Tab1 is having Textfield with some value filled in it. So title is already at the top of text field. When I click on Tab1 and then on Tab2 and revisit Tab1, Title animates and goes up every time leaving all UI distorted.

I am using a custom control which internally uses text field which has a command to navigate to other page and comes back to page.

image After clicking on Tab 2 and comong back to Tab1 image

Findings from @enisn regarding this issue as mentioned in this issue. It happens because of technical limitations. It releases events when removed from layout and re-registers when it's visible again. Since the locations are set by an animation, they're re-animated when become visible. You can create another issue for this problem. Maybe I can handle page rendering and set label position without animating

ketakidevendra commented 3 months ago

Any update on this @enisn. This is affecting my app.

StepKie commented 2 months ago

Any update on this @enisn ?

enisn commented 2 months ago

Any update on this @enisn ?

I made an enhancement for a better transition between switching tabs with #755