aboutsummaryrefslogtreecommitdiff
path: root/static/development-bundle/demos/resizable/snap-to-grid.html
diff options
context:
space:
mode:
authorChris Miller <christopher@ctmiller.net>2010-02-19 22:34:36 -0500
committerChris Miller <christopher@ctmiller.net>2010-02-19 22:34:36 -0500
commit48ec7d720e9b81e7aa849587bef3a263bac2e8ca (patch)
treeed44303a9fcfd8fa15a20bcab14deed1e7b1cd41 /static/development-bundle/demos/resizable/snap-to-grid.html
downloadsnakeplan-48ec7d720e9b81e7aa849587bef3a263bac2e8ca.tar.bz2
snakeplan-48ec7d720e9b81e7aa849587bef3a263bac2e8ca.tar.xz
snakeplan-48ec7d720e9b81e7aa849587bef3a263bac2e8ca.zip
Initial check for iterations. YMMV.
Diffstat (limited to 'static/development-bundle/demos/resizable/snap-to-grid.html')
-rw-r--r--static/development-bundle/demos/resizable/snap-to-grid.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/static/development-bundle/demos/resizable/snap-to-grid.html b/static/development-bundle/demos/resizable/snap-to-grid.html
new file mode 100644
index 0000000..f2adcc6
--- /dev/null
+++ b/static/development-bundle/demos/resizable/snap-to-grid.html
@@ -0,0 +1,37 @@
1<!doctype html>
2<html lang="en">
3<head>
4 <title>jQuery UI Resizable - Snap to grid</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7 <script type="text/javascript" src="../../ui/ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/ui.resizable.js"></script>
9 <link type="text/css" href="../demos.css" rel="stylesheet" />
10 <style type="text/css">
11 #resizable { width: 150px; height: 150px; padding: 0.5em; }
12 #resizable h3 { text-align: center; margin: 0; }
13 </style>
14 <script type="text/javascript">
15 $(function() {
16 $("#resizable").resizable({
17 grid: 50
18 });
19 });
20 </script>
21</head>
22<body>
23<div class="demo">
24
25<div id="resizable" class="ui-widget-content">
26 <h3 class="ui-widget-header">Grid</h3>
27</div>
28
29</div><!-- End demo -->
30
31<div class="demo-description">
32
33<p>Snap the resizable element to a grid. Set the dimensions of grid cells (height and width in pixels) with the <code>grid</code> option.</p>
34
35</div><!-- End demo-description -->
36</body>
37</html>