-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ngbDropdownMenu wrong position on small device in navbar #3030
Comments
In Bootstrap Dropdown JS adds See https://github.com/twbs/bootstrap/blob/master/js/src/dropdown.js#L147 they do not use Popper.js when Dropdown is in Navbar. |
I'm not sure it's related, but I'm currently having an issue where in dev mode the ngbDropdownMenu is positioned using |
Bug description:
When using a
ngbDropdownMenu
inside anavbar
, opening the menu on a large device will make it render asposition: absolute
and will display below the opening button. But when reducing the screen and the dropdown should appear in the hamburger menu, when opening it is still displayed usingposition: absolute
which makes the menu look weird (not taking the full width).Note: this issue does NOT happen on
4.0.2
but does on4.0.3
. On4.0.2
theposition
is not overridden by the library and it works.4.0.3
is somehow addingposition: absolute
which is completely unnecessary and breaks the layoutLink to minimally-working StackBlitz that reproduces the issue:
https://stackblitz.com/edit/angular-gwm69f
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 7.0.0
ng-bootstrap: 4.0.3
Bootstrap: 4.2.0
The text was updated successfully, but these errors were encountered: