Ngx-bootstrap: How to use modal-dialog-scrollable

Created on 14 May 2019  路  4Comments  路  Source: valor-software/ngx-bootstrap

Bug description or feature request:

See the new class available for modals here called modal-dialog-scrollable.

Is there anything specific we need to do to get this to work?

    const ref = this.modalService.show(ResultsFilterModalComponent,
      {
        class: "modal-lg modal-dialog-scrollable",
      });

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 4.1.1

Angular: 7.2.x

Bootstrap: 4.3

comp(modal) feat-request

Most helpful comment

I just managed to make my contents scrollable with this piece of code on my modal component css:

:host {
display: contents;
}

All 4 comments

I am facing the same issue and believe the problem has to be that ngx-bootrap prevents certain relevant css rules by adding the angular component node at this location:
image

image

Has anybody an idea how to fix this?

Same here does not work for me when I add

modal-dialog-scrollable

Seems like the _version of bootstrap_ is the problem but I haven't gotten the chance to test this theory

Yup ngx-bootstrap uses version 4.2.1 of bootstrap and modal-dialog-scrollable seems to have been implemented in version 4.3.x of bootstrap

I just managed to make my contents scrollable with this piece of code on my modal component css:

:host {
display: contents;
}

I just managed to make my contents scrollable with this piece of code on my modal component css:

:host {
display: contents;
}

This save my day. thanks much.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mounthorse-slns picture mounthorse-slns  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments

tuoitrexuquang picture tuoitrexuquang  路  3Comments

hugonne picture hugonne  路  3Comments