Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No event hook to reposition element #111
I know you can use an option to affect where the element is poisitioned related to the triggered element. I am trying to position the element dynamically with JS but all of the event hooks take place before the positioning is done, so any styles I add get overwritten.
I think we need an 'after_show' event hook.
Although given the scenario I am not sure what the difference between
It is important that you allow the user to do this as they may not want the widget to be positioned relative to the element that triggers it. That element could even be hidden. But the main issue I am having is on a mobile the widget gets positioned partly off the page. Would it also be an idea to add logic to check if the widget is going to positioned outside of the page, and if so, make some adjustments accordingly?
You have to basically using flat mode, not applying it to
I'm not sure I'd like to have it right now. The reason is that there are many people with multiple edge-cases and supporting literally all use-cases makes codebase too bloated.