Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | <!doctype html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <title>jQuery UI Resizable - Preserve aspect ratio</title>
|
---|
5 | <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
|
---|
6 | <script type="text/javascript" src="../../jquery-1.4.1.js"></script>
|
---|
7 | <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
|
---|
8 | <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
|
---|
9 | <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
|
---|
10 | <script type="text/javascript" src="../../ui/jquery.ui.resizable.js"></script>
|
---|
11 | <link type="text/css" href="../demos.css" rel="stylesheet" />
|
---|
12 | <style type="text/css">
|
---|
13 | #resizable { width: 160px; height: 90px; padding: 0.5em; }
|
---|
14 | #resizable h3 { text-align: center; margin: 0; }
|
---|
15 | </style>
|
---|
16 | <script type="text/javascript">
|
---|
17 | $(function() {
|
---|
18 | $("#resizable").resizable({
|
---|
19 | aspectRatio: 16/9
|
---|
20 | });
|
---|
21 | });
|
---|
22 | </script>
|
---|
23 | </head>
|
---|
24 | <body>
|
---|
25 | <div class="demo">
|
---|
26 |
|
---|
27 | <div id="resizable" class="ui-widget-content">
|
---|
28 | <h3 class="ui-widget-header">Preserve aspect ratio</h3>
|
---|
29 | </div>
|
---|
30 |
|
---|
31 | </div><!-- End demo -->
|
---|
32 |
|
---|
33 | <div class="demo-description">
|
---|
34 |
|
---|
35 | <p>Maintain the existing aspect ratio or set a new one to constrain the proportions on resize. Set the <code>aspectRatio</code> option to true, and optionally pass in a new ratio (i.e., 4/3)</p>
|
---|
36 |
|
---|
37 | </div><!-- End demo-description -->
|
---|
38 | </body>
|
---|
39 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.