Hi everyone,
I’m working on a mobile-only GWT interface in App Inventor and I’m running into a frustrating issue with my hamburger menu’s popup panel. I’d appreciate any advice on what I’m doing wrong and how to fix it.
What I want:
User clicks the hamburger icon (<ai:DropDownButton>).
A centered popup appears on the mobile screen containing two DisclosurePanels (“Projects” and “Build”).
Clicking outside the popup closes it.
Clicking the hamburger again repeats the cycle.
What’s happening now:
As soon as the page loads (without any click), the popup is already visible.
Clicking outside does not close the popup.
Code Link : https://codefile.io/f/QdcBxeQPbk
Removed any menuPopup.show() calls outside the click handler.
Ensured autoHideEnabled="true" so GWT should hide on outside clicks.
Centered via both CSS transform and menuPopup.center().
Despite all this, the popup still:
Loads automatically
Doesn’t close on outside clicks
Shows only a blank black box, no disclosure panels
Why is the popup visible on initial page load, even though I never call .show() or .center()?
How can I ensure it only appears when settingsDropDown is clicked?
Why doesn’t autoHideEnabled=true close it on outside clicks?
What’s the best practice for centering a GWT PopupPanel on mobile without conflicting CSS?
Any guidance, code suggestions, or pointers to GWT docs would be hugely appreciated! 🙏
Thanks in advance,