diff options
Diffstat (limited to 'static/development-bundle/demos/resizable/max-min.html')
-rw-r--r-- | static/development-bundle/demos/resizable/max-min.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/static/development-bundle/demos/resizable/max-min.html b/static/development-bundle/demos/resizable/max-min.html new file mode 100644 index 0000000..d29e4d7 --- /dev/null +++ b/static/development-bundle/demos/resizable/max-min.html | |||
@@ -0,0 +1,40 @@ | |||
1 | <!doctype html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <title>jQuery UI Resizable - Maximum / minimum size</title> | ||
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" /> | ||
6 | <script type="text/javascript" src="../../jquery-1.3.2.js"></script> | ||
7 | <script type="text/javascript" src="../../ui/ui.core.js"></script> | ||
8 | <script type="text/javascript" src="../../ui/ui.resizable.js"></script> | ||
9 | <link type="text/css" href="../demos.css" rel="stylesheet" /> | ||
10 | <style type="text/css"> | ||
11 | #resizable { width: 200px; height: 150px; padding: 5px; } | ||
12 | #resizable h3 { text-align: center; margin: 0; } | ||
13 | </style> | ||
14 | <script type="text/javascript"> | ||
15 | $(function() { | ||
16 | $("#resizable").resizable({ | ||
17 | maxHeight: 250, | ||
18 | maxWidth: 350, | ||
19 | minHeight: 150, | ||
20 | minWidth: 200 | ||
21 | }); | ||
22 | }); | ||
23 | </script> | ||
24 | </head> | ||
25 | <body> | ||
26 | <div class="demo"> | ||
27 | |||
28 | <div id="resizable" class="ui-widget-content"> | ||
29 | <h3 class="ui-widget-header">Resize larger / smaller</h3> | ||
30 | </div> | ||
31 | |||
32 | </div><!-- End demo --> | ||
33 | |||
34 | <div class="demo-description"> | ||
35 | |||
36 | <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> | ||
37 | |||
38 | </div><!-- End demo-description --> | ||
39 | </body> | ||
40 | </html> | ||