I am building a site where the navigation will start out at the bottom of the screen and then will stick to the top once the user scrolls down a bit. I need for the menu to start out in bottomToTop (dropup) mode, but then to switch to dropdown mode once a certain scroll position has been reached.
I’ve tried destroying the menu and recreating it each time the orientation needs to change, but 1) that seems like overkill, and 2) it’s causing issues when I destroy a menu that has not yet been instantiated.
So, what I need is either a way to switch this one mode without destroying and re-instantiating, or else a reliable way of telling if the menu has already been instantiated so that I don’t try to destroy it if it doesn’t exist.
The first would be preferable, but I can probably get by with the second as well.
Thank you!