aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-12-30 05:42:54 +0000
committerRichard Worth <rdworth@gmail.com>2008-12-30 05:42:54 +0000
commitf401cdc0a8710f8bba0bdbea272801168d9a559e (patch)
tree8c2c2382482338009c3e25aa83c1bf1b3266de32 /demos
parentcc237b31cd73de6cd29ed8de9a0177485cd0bbdb (diff)
downloadjquery-ui-f401cdc0a8710f8bba0bdbea272801168d9a559e.tar.gz
jquery-ui-f401cdc0a8710f8bba0bdbea272801168d9a559e.zip
demos/resizable/aspectratio.html - switched to framework classes
Diffstat (limited to 'demos')
-rw-r--r--demos/resizable/aspectratio.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/resizable/aspectratio.html b/demos/resizable/aspectratio.html
index 3e1442847..9742d3f3f 100644
--- a/demos/resizable/aspectratio.html
+++ b/demos/resizable/aspectratio.html
@@ -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">
<p>Resize me</p>
</div>