ngx-modal
ngx-modal copied to clipboard
How to specify dialog width and height?
Is there any option available to specify the width and height of the dialog?
I need this option too. Anything about that? Aparently, styles via CCS (.modal-dialog, .modal-body) are not taken into account, I don't know why
Is there any update on this? Has anyone found a solution?
I solved it like this: In css: .modal-xl { width: 1100px; } .modal-header { padding: 0; } .modal-fit.modal-body { overflow-y: auto; max-height: calc(100vh - 140px); }
In MyModal.ts:
dialogInit(reference: ComponentRef<IModalDialog>, options: Partial<IModalDialogOptions
In MyModal.html: div class="modal-body modal-fit" ... div
*I have to remove < in html section since blog omitted it