aboutsummaryrefslogtreecommitdiffstats
path: root/demos/accordion/fillspace.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-03 14:14:13 -0500
committerScott González <scott.gonzalez@gmail.com>2011-02-03 14:14:13 -0500
commited4903370090c5e81a5be7a9e23f351fc1b062a6 (patch)
treef8d6250a52adcf7c51a0a8e63bb1fba28a2ce44f /demos/accordion/fillspace.html
parent678ff6326a984d4ff8e7f69fd31304c2520e66f3 (diff)
downloadjquery-ui-ed4903370090c5e81a5be7a9e23f351fc1b062a6.tar.gz
jquery-ui-ed4903370090c5e81a5be7a9e23f351fc1b062a6.zip
Accordion: Updated demos to use the new API.
Diffstat (limited to 'demos/accordion/fillspace.html')
-rw-r--r--demos/accordion/fillspace.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html
index f874feb39..6cdd69181 100644
--- a/demos/accordion/fillspace.html
+++ b/demos/accordion/fillspace.html
@@ -14,14 +14,15 @@
<script>
$(function() {
$( "#accordion" ).accordion({
- fillSpace: true
+ heightStyle: "fill"
});
});
$(function() {
$( "#accordionResizer" ).resizable({
minHeight: 140,
+ minWidth: 200,
resize: function() {
- $( "#accordion" ).accordion( "resize" );
+ $( "#accordion" ).accordion( "refresh" );
}
});
});
@@ -69,7 +70,7 @@
<div class="demo-description">
-<p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the boolean <code>fillSpace</code> option to true, and the script will automatically set the dimensions of the accordion to the height of its parent container. The accordion will also resize with its container if the container is <code>resizable</code>.</p>
+<p>Because the accordion is comprised of block-level elements, by default its width fills the available horizontal space. To fill the vertical space allocated by its container, set the <code>heightStyle</code> option to <code>"fill"</code>, and the script will automatically set the dimensions of the accordion to the height of its parent container.</p>
</div><!-- End demo-description -->
</body>