Debian Codegraph @

demos/resizable/max-min.html

raw
1 <!doctype html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery UI Resizable - Maximum / minimum size</title>
7 <link rel="stylesheet" href="../../themes/base/all.css">
8 <link rel="stylesheet" href="../demos.css">
9 <style>
10 #resizable { width: 200px; height: 150px; padding: 5px; }
11 #resizable h3 { text-align: center; margin: 0; }
12 </style>
13 <script src="../../external/requirejs/require.js"></script>
14 <script src="../bootstrap.js">
15 $( "#resizable" ).resizable({
16 maxHeight: 250,
17 maxWidth: 350,
18 minHeight: 150,
19 minWidth: 200
20 });
21 </script>
22 </head>
23 <body>
24
25 <div id="resizable" class="ui-widget-content">
26 <h3 class="ui-widget-header">Resize larger / smaller</h3>
27 </div>
28
29 <div class="demo-description">
30 <p>Limit the resizable element to a maximum or minimum height or width using the <code>maxHeight</code>, <code>maxWidth</code>, <code>minHeight</code>, and <code>minWidth</code> options.</p>
31 </div>
32 </body>
33 </html>