CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

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

Open javieranton-zz opened this issue 5 years ago • 1 comments

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 avatar Nov 17 '20 14:11 javieranton-zz

Up

javieranton-zz avatar May 12 '21 09:05 javieranton-zz