Layout involving BrowserComponents revalidates when typing

16 views
Skip to first unread message

P5music

unread,
Jun 8, 2021, 4:33:47 AM6/8/21
to CodenameOne Discussions

I am testing my CN1 app in the iOS simulator. On my OSX system performance is variable according to what device is simulated. They are pretty slow, I can notice something.
My app has buttons, textfields and BrowserComponents in the layout.
I see that
when a textfield is edited, even in a foregrounded Dialog, or the text inside the BC itself is edited,
both the BrowserComponents in the layout (they are in different containers) "blink".
I know that in the simulator the BC are flacky,
but a more serious question is raised.

I do not know what happens on real devices but my suspect is that each time a character is typed the overall layout is computed.

Is it possible to make the BCs not "revalidate" during those typings?
I mean, the BCs have fixed size, no changes happen when typing.

Thanks in advance

Shai Almog

unread,
Jun 8, 2021, 9:20:19 PM6/8/21
to CodenameOne Discussions
I don't think we revalidate the browser component while typing but I'll confirm that.
Reply all
Reply to author
Forward
0 new messages