1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-09 15:16:51 +02:00

Some .navbar .dropdown-menu optimisation (#22776)

This commit is contained in:
Catalin Zalog
2017-06-08 22:57:47 +03:00
committed by Mark Otto
parent af93db294b
commit f640ec9662
2 changed files with 0 additions and 27 deletions

View File

@@ -251,21 +251,6 @@ const Dropdown = (($) => {
return $(this._element).closest('.navbar').length > 0
}
_navbarPositioning() {
const $parentNavbar = $(this._element).closest('.navbar')
if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
if (!$parentNavbar.hasClass('navbar-expand')) {
return {
position: 'static',
transform: '',
float: 'none'
}
}
}
return {}
}
_getPopperConfig() {
const popperConfig = {
placement : this._getPlacement(),