codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.72k stars 409 forks source link

(iPad) Form content not scrolling back to normal when keyboard is folded using keyboard fold key #3308

Open javieranton-zz opened 4 years ago

javieranton-zz commented 4 years ago

Take the following code:

Form hi = new Form("Test", new BorderLayout());
hi.setFormBottomPaddingEditingMode(true);
hi.add(BorderLayout.NORTH, new Label("Top"));

Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
c.setScrollableY(true);
hi.add(BorderLayout.CENTER, c);

hi.add(BorderLayout.SOUTH, new TextField("", "hint", 1000, TextField.ANY));
hi.show();

Notice the hi.setFormBottomPaddingEditingMode(true);. This will work as expected except in the following case, in which the TextField is left floating in the middle of the screen: -Running on iOS (tested on iPad4) -Keyboard is expanded, and then it is folded using the keyboard fold key in the bottom-right corner (not the "done" button. The "done" button correctly brings the TextField back to the bottom)

Example screenshot of bug:

Key that triggers this (bottom right key):

javieranton-zz commented 3 years ago

Up