简体   繁体   中英

Angular UI bootstrap modal fullscreen

Hi I have modal with custom size:

 var dialog = modal.open({ template: content, size: size, controller:'someController' controllerAs: 'dialog' }); 
 .modal-custom-lg { width:90%; max-width:1200px; height:100%; } 

The width works fine but the height does not work. I am trying to make my modal fullscreen. Can anyone suggest me how to make my modal fullscreen?

.modal-custom-lg .modal-dialog {
    width: 100%;
    height: 100%;
}

.modal-custom-lg .modal-content {
    width: 100%;
    height: 100%;
}

So I have to adjust the modal-dialog and modal-content as well not just modal size

 .modal-custom-lg .modal-dialog { width: 100%; height: 100vh; } .modal-custom-lg .modal-content { width: 100%; height: 100vh; } 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM