r1291 - trunk/demos/resizable

r1291 - trunk/demos/resizable


Author: rdworth
Date: Mon Dec 29 20:54:59 2008
New Revision: 1291
Modified:
trunk/demos/resizable/alsoresize.html
Log:
demos/resizable/alsoresize.html - switched to framework classes
Modified: trunk/demos/resizable/alsoresize.html
==============================================================================
--- trunk/demos/resizable/alsoresize.html    (original)
+++ trunk/demos/resizable/alsoresize.html    Mon Dec 29 20:54:59 2008
@@ -7,22 +7,27 @@
    <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>
+    <style type="text/css">
+    #resizable, #also { width: 150px; height: 150px; padding: 0.5em;
background-position: top left; }
+    #also { margin-top: 1em; }
+    </style>
    <script type="text/javascript">
    $(function() {
        $("#resizable").resizable({
            alsoResize: '#also'
        });
+        $("#also").resizable();
    });
    </script>
</head>
<body>
-<div id="resizable" style="width: 200px; height: 200px; background-color:
#f00;">
+<div id="resizable" class="ui-widget-header">
    

Resize me


</div>
-<div id="also" style="width: 100px; height: 100px; background-color: #0f0;
position: absolute, top: 300px;">
-    

I will resize with the other div!


+<div id="also" class="ui-widget-content">
+    

I will resize with the other div. I can also be resized
independently.


</div>
</body>