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.71k stars 405 forks source link

Second AutoCompleteTextField popup shown at bottom of screen #1687

Closed gerbenk closed 8 years ago

gerbenk commented 8 years ago

When you use two AutoCompleteTextField objects in a single form, the popup of the second one is shown at the bottom of the screen and not directly next to the TextField.

screenshot 2016-02-12 16 42 42

It happens on both the simulator and iOS.

codenameone commented 8 years ago

Was just able to reproduce this:

Form hi = new Form("AutoComplete", new BoxLayout(BoxLayout.Y_AXIS));
hi.add(new AutoCompleteTextField("AAAA", "ABBB", "ACCCC", "ABC")).
                add(new AutoCompleteTextField("AAAA", "ABBB", "ACCCC", "ABC"));
hi.show();

Not sure why the popup is initialized the way it is. We'll need to dig into it.

3lix commented 8 years ago

I submitted issue #1697 that could be related to this one. It is different symptoms with potentially the same root cause. -3lix-

mjweb48 commented 8 years ago

I'm having an issue that may be related, but the symptoms are a bit different. I've made a form in the GUI builder that has 6 auto complete text fields. All are made in exactly the same way with their completion arrays set before the form is shown, also in exactly the same way. The first two fields work as expected. The second two fields only show their completion options after some of the picker components are used on the form (they are in the same container), and the last two never show their completion options (or are showing them off screen?).

chen-fishbein commented 8 years ago

fixed, thanks! Will be available in the next update

mjweb48 commented 8 years ago

Thanks Chen!

On Wed, Mar 16, 2016 at 12:00 PM, Chen Fishbein notifications@github.com wrote:

fixed, thanks! Will be available in the next update

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/codenameone/CodenameOne/issues/1687#issuecomment-197397248