aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-30 20:23:04 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-30 20:23:04 +0000
commit900edafd3491a29f2f591a7f54ec1fc1defecd47 (patch)
tree22d5745567543755d68457831395f03f1b9cdfb2
parent3fded1ab270be48d3f5ce84e54f7c21bd2990978 (diff)
downloadjquery-ui-900edafd3491a29f2f591a7f54ec1fc1defecd47.tar.gz
jquery-ui-900edafd3491a29f2f591a7f54ec1fc1defecd47.zip
accordion: added noAutoHeight.html demo
-rw-r--r--demos/accordion/index.html1
-rw-r--r--demos/accordion/noAutoHeight.html60
2 files changed, 61 insertions, 0 deletions
diff --git a/demos/accordion/index.html b/demos/accordion/index.html
index 89134f902..11f371d85 100644
--- a/demos/accordion/index.html
+++ b/demos/accordion/index.html
@@ -10,6 +10,7 @@
<ul>
<li class="demo-config-on"><a href="default.html">Default functionality</a></li>
<li><a href="fillspace.html">Fill space</a></li>
+ <li><a href="noAutoHeight.html">No auto height</a></li>
<li><a href="collapsible.html">Collapse content</a></li>
<li><a href="mouseover.html">Open on mouseover</a></li>
<li><a href="custom-icons.html">Customize icons</a></li>
diff --git a/demos/accordion/noAutoHeight.html b/demos/accordion/noAutoHeight.html
new file mode 100644
index 000000000..8f976e347
--- /dev/null
+++ b/demos/accordion/noAutoHeight.html
@@ -0,0 +1,60 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>jQuery UI Accordion - Open on mouseover</title>
+ <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
+ <script type="text/javascript" src="../../jquery-1.3.1.js"></script>
+ <script type="text/javascript" src="../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../ui/ui.accordion.js"></script>
+ <link type="text/css" href="../demos.css" rel="stylesheet" />
+ <script type="text/javascript">
+ $(function() {
+ $("#accordion").accordion({
+ autoHeight: false
+ });
+ });
+ </script>
+</head>
+<body>
+
+<div class="demo">
+
+<div id="accordion">
+ <h3><a href="#">Section 1</a></h3>
+ <div>
+ <p>Mauris mauris ante, blandit et, ultrices a, susceros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p>
+ </div>
+ <h3><a href="#">Section 2</a></h3>
+ <div>
+ <p>Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. </p>
+ </div>
+ <h3><a href="#">Section 3</a></h3>
+ <div>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <p>Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. </p>
+ <ul>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ <li>List item</li>
+ </ul>
+ </div>
+</div>
+
+</div><!-- End demo -->
+
+
+
+<div class="demo-description">
+
+<p>Settings <code>autoHeight: false</code> allows to accordion panels to keep their native height.</p>
+
+</div><!-- End demo-description -->
+
+</body>
+</html>