closeSideMenu vs overflow menu button

31 views
Skip to first unread message

Ivan

unread,
Oct 23, 2020, 3:26:23 PM10/23/20
to CodenameOne Discussions
Hi guys,

I started to use left side menu in my application and I have following issue.
Whenever Toolbar.closeSideMenu (or closeLeftSideMenu) method is called (either programatically or clicking outside the menu to close it) the overflow menu button disappeares (and back button sometimes too)
Using component browser I found out that button is still present but has zero size.
I need to call Toobar.revalidate() to show it again.

Is it bug or how can I get rid of this behavior?

Thanks
Ivan

Tested in simulator and android device too (Xiaomi Redmi Note 6 Pro, Android 9)

Shai Almog

unread,
Oct 24, 2020, 1:36:36 AM10/24/20
to CodenameOne Discussions

Ivan

unread,
Oct 25, 2020, 2:20:58 PM10/25/20
to CodenameOne Discussions
No, this is not my case.
I don't use setOnTopSideMenu(false)
and I alredy call setAllowEnableLayoutOnPaint(true).

Base on your reply I experimented with setAllowEnableLayoutOnPaint(true) and I found out, that when I break the code on this istruction (in debugger) and then let it continue it works as expected.
But when it runs normaly it does not work (the button still disappeares).
It seems to be some kind of race condition, but I'm not able to resolve it ....

Dátum: sobota 24. októbra 2020, čas: 7:36:36 UTC+2, odosielateľ: Shai Almog

Shai Almog

unread,
Oct 25, 2020, 11:47:55 PM10/25/20
to CodenameOne Discussions
Can you isolate this to a standalone test case we can reproduce?
Reply all
Reply to author
Forward
0 new messages