New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popover/dropdown/tooltip placement suggestion #15980
Comments
Hi @RobJacobs! You appear to have posted a live example (http://run.plnkr.co/plunks/XWYE6iIvYmDpwlk8K0A3/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
@kkirsche Asked: How does this compare to the exotic placement options found here from mgcrea/bootstrap-additions? That is what inspired me to come up with this. There were a couple of additional problems I wanted to solve:
I have approached angular-strap about integrating this into their project but I didn't know if the larger TWBS community might find this useful. |
Thanks for your reasoning about this. 😃 |
We won't be adding any new features—including positioning techniques—to v3. I'm unsure if we'd do this in v4 either, but we can revisit that once the alpha is out. |
I've been playing around with adding more placement options to the Popover/Dropdown/tooltip for top-left, top-right, etc... and came up with an approach for placing the popup elements I would like to share and perhaps introduce into the TWBS library. This plunk demonstrates what I have done. The placement.less contains the mixins that build up the css, style.css contains the generated css. One advantage to this approach is that I don't use discreet pixels to set the top, bottom, left, or right values so the container will grow as the content grows without shifting the anchor point.
_EDIT_
Updated plunk to remove Angular dependencies.
The text was updated successfully, but these errors were encountered: