-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Support Popper positions #22962
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
Comments
Bootstrap 4's dropdown placement options currently mirror the "basic" positioning for popper.
|
Popper supports placement variations using Is this issue going to address that problem? It seems that it is not supported via de BS popover options (I am using the 4.1.2 bundle JS). |
Just hit this "-start" & "-end" problem with bootstrap 4.3.1. I would need to definitely be able to use "top-start" alignment for some tooltips, but bootstrap tooltip.js explicitly forbids that. So I'm pondering what kind of workaround would solve the problem. Found workaround, just overriding placement resolver from "Tooltip class"
|
Still opened... My little 2cts workaround, include/execute after bootstrap.js is loaded: ;(function () {
// Fix Bootstrap caveat regarding to Poppers.js placement capabilities
// Allow overriding Dropdown placement with 'data-placement' attribute
var original_getPlacement = bootstrap.Dropdown.prototype._getPlacement
bootstrap.Dropdown.prototype._getPlacement = function () {
return $(this._menu).data('placement') || original_getPlacement()
}
})() then for example: <div className="dropdown-menu" data-placement="bottom">
...
</div> |
+1 |
That worked for me! Thanks! |
Why in 5 version don't have class |
Why are all the other issues closed regarding this? I was hoping to use this as a closed issue means problem solved? |
Added center dropdown and dropup variations in #35893, so going to close this out. I don't see us adding every single option at this point, but if someone does want to go the extra length to try it out for us, I'm down to review a PR :). |
Replacement issue for #17759 and #19921. Would be rad to tackle this for a v4.1 or v4.2 release.
Also includes dropdowns now: #21510.
/cc @Johann-S
The text was updated successfully, but these errors were encountered: