diff options
Diffstat (limited to 'demos/resizable/containment.html')
-rw-r--r-- | demos/resizable/containment.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/demos/resizable/containment.html b/demos/resizable/containment.html new file mode 100644 index 000000000..42c505fe0 --- /dev/null +++ b/demos/resizable/containment.html @@ -0,0 +1,27 @@ +<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Resizable - Containment Demo</title>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <link type="text/css" href="../../themes/default/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.2.6.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.resizable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $("#resizable").resizable({ + containment: '#container' + });
+ });
+ </script>
+</head>
+<body>
+ +<div id="container" style="width: 600px; height: 600px; background-color: #0f0;"> + <div id="resizable" style="width: 200px; height: 200px; background-color: #f00;">
+ <p>Resize me</p>
+ </div>
+</div> +
+</body>
+</html>
|