Błażej Mcszk
Błażej Mcszk

Reputation: 41

Codename One - Text field changing size randomly

We have two inputs on login screen. They are working fine in simulator but on Android device they are changing height randomly when being focused.

What can be the reason of this?

EDIT, more details on screenshots

Loaded screen: Loaded screen After gaining, losing focus on text fields: After gaining, losing focus on text fields Component tree inspector: Component tree inspector

Upvotes: 1

Views: 197

Answers (1)

Chen
Chen

Reputation: 3760

On android when a the Keyboard is showing the Form is getting a size changed event which cause the screen to re-layout. Make the TextFields parent Container scrollable-Y it will cause the scroll to grow instead of resizing the components inside

Upvotes: 1

Related Questions