GIJGO
Run Example
Close Window
<!DOCTYPE html> <html> <head> <title>Resizable Bootstrap Modal</title> <meta charset="utf-8" /> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> </head> <body> <ul> <li>Click on the dialog header and move the mouse in order to drag the dialog.</li> <li>Click on the dialog borders and move the mouse in order to resize the dialog.</li> </ul> <button class="btn btn-default" onclick="dialog.open()">Reopen</button> <div id="dialog"> <div data-role="header" class="modal-header"> <h5 data-role="title" class="modal-title">Resizable Bootstrap 4 Modal</h5> <button data-role="close" type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div data-role="body"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> <div data-role="footer"> <button class="btn" data-role="close">Cancel</button> <button class="btn" onclick="dialog.close()">OK</button> </div> </div> <script type="text/javascript"> var dialog; $(document).ready(function () { dialog = $("#dialog").dialog({ uiLibrary: 'bootstrap4', resizable: true, minWidth: 200, maxWidth: 600, minHeight: 200, maxHeight: 450, width: 450, height: 350, modal: true }); }); </script> </body> </html>