r1294 - trunk/demos/resizable

r1294 - trunk/demos/resizable


Author: rdworth
Date: Mon Dec 29 21:42:54 2008
New Revision: 1294
Modified:
trunk/demos/resizable/aspectratio.html
Log:
demos/resizable/aspectratio.html - switched to framework classes
Modified: trunk/demos/resizable/aspectratio.html
==============================================================================
--- trunk/demos/resizable/aspectratio.html    (original)
+++ trunk/demos/resizable/aspectratio.html    Mon Dec 29 21:42:54 2008
@@ -7,17 +7,20 @@
    <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 { width: 160px; height: 90px; padding: 0.5em;
background-position: top left; }
+    </style>
    <script type="text/javascript">
    $(function() {
        $("#resizable").resizable({
-            aspectRatio: 2
+            aspectRatio: 16/9
        });
    });
    </script>
</head>
<body>
-<div id="resizable" style="width: 400px; height: 200px; background-color:
#f00;">
+<div id="resizable" class="ui-widget-content">
    

Resize me


</div>