1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to set width of ngb Dropdown Menu inherited from parent ngb Dropdown append to body?

Discussão em 'Angular' iniciado por Agm, Setembro 18, 2025.

  1. Agm

    Agm Guest

    Since I have to use property
    container="body"
    -> https://github.com/ng-bootstrap/ng-bootstrap/issues/1012
    My dropdown is attached to the body(correct me if i'm wrong...).
    So it means I can't inherit width from parent (ngbDropdown)-> ngbDropdownMenu.
    How I can set the same width for dropdown menu and button??

    NgbDropdown with width: inherit but without property container="body"

    ngbDropdown with width: inherit but with property container="body"

    So I need property container="body" but still want to inherit width from button

    Continue reading...

Compartilhe esta Página