Uno.Gallery icon indicating copy to clipboard operation
Uno.Gallery copied to clipboard

[iOS][Android][TextBox][PasswordBox] Placeholder text animation speed is too slow, placeholder text overlaps with text entered

Open StewartPolsky opened this issue 4 years ago • 3 comments

Current behavior

TextBox Animation

Expected behavior

TextBox Animation UWP

How to reproduce it (as minimally and precisely as possible)

  1. Launch app
  2. Navigate to TextBox
  3. Enter text to a TextBox
  4. Notice that the placeholder text animation is slow and overlaps with the entered text

NOTE Issue is also present when entering text to a PasswordBox

Environment

iPhone 8 iOS 13.3 Samsung S10e Android 10

Nuget Package:

Package Version(s):

Affected platform(s):

  • [x] iOS
  • [x] Android
  • [ ] WebAssembly
  • [ ] WebAssembly renders for Xamarin.Forms
  • [ ] Windows
  • [ ] Build tasks

Visual Studio:

  • [ ] 2017 (version: )
  • [x] 2019 (version: )
  • [ ] for Mac (version: )

Relevant plugins:

  • [ ] Resharper (version: )

Anything else we need to know?

StewartPolsky avatar Sep 30 '20 20:09 StewartPolsky

Behavior does not follow the Material Design guidelines also for all platform as while focusing the header should move upward directly and not after starting to type inside the field c582f2258c6521c270abae740a661180

agneszitte avatar May 26 '21 16:05 agneszitte

@agneszitte-nventive did we alter the behavior mentioned in this issue?

jeromelaban avatar Dec 01 '21 21:12 jeromelaban

@jeromelaban the translate transform for the placeholder is done directly in the visual states of the textbox style and needs to be reviewed apparently (maybe also the transform is not behaving the same for ios/android in terms of speed). Needs more tests and investigation.

https://github.com/unoplatform/Uno.Themes/blob/58cbfb1eedb446c7cefd88e7a2f8c04283f45eed/src/library/Uno.Material/Styles/Controls/TextBox.xaml#L142

GitHub
This library is designed to help you use the material design system with the Uno Platform - Uno.Themes/TextBox.xaml at 58cbfb1eedb446c7cefd88e7a2f8c04283f45eed · unoplatform/Uno.Themes

agneszitte avatar Dec 03 '21 19:12 agneszitte

@sakshi173 Can you help to verify if this issue is still valid for Gallery please?

agneszitte avatar Jan 26 '23 23:01 agneszitte

Hi @agneszitte-nventive, I retested this issue and I am not able to generate it, due to that closing it.

sakshi173 avatar Jan 30 '23 20:01 sakshi173

Hi @agneszitte-nventive, I retested this issue and I am not able to generate it, due to that closing it.

Thanks a lot @sakshi173 !

agneszitte avatar Feb 02 '23 21:02 agneszitte