This support forum belongs to the Accordion Gallery Module.
Accordion has a bug tracker here: http://github.com/ipeychev/yui3-gallery/issues
| Page 1 of 1 | [ 4 posts ] |
|
I'm experimenting with nesting accordions. So far I'm having some success. I can create all the references but rendering seems to be throwing me a curve.
When the first accordion is rendered, it's content window is set to 2px. You can see am image of this here. ![]() Removing the reference to the style="2px;" gives me : ![]() At this point I can interact with the nested according as normal, but if I collapse the modified (in firebug) according title it resets to 2px. Is this style="2px;" getting set in the accordion code? |
|
Huey,
hpbrantley wrote: I'm experimenting with nesting accordions. So far I'm having some success. I can create all the references but rendering seems to be throwing me a curve. When the first accordion is rendered, it's content window is set to 2px. You can see am image of this here. Is this style="2px;" getting set in the accordion code? No, the height of item's body is not set in the code. Accordion sets it based on the value of contentHeight property. In case of "stretch" or "auto" it is calculated dynamically; in case of "fixed", it is set to the specified value. Iliyan |
|
I'm having a similar issue. When an item in the "outer" accordion is opened (and the contentHeight is auto), the body gets set to the height that accommodates the "inner" closed accordion. Whenever I then try to open an "inner" item, the contentHeight of the outer does not adjust (making it look like an "overflow hidden" scenario).
When I use Firebug to "turn off" the height on the outer accordion body, I get the effect I'm looking for. Sorta. If I close the inner accordion item, the outer accordion body does not adjust. How can I force the "parent" accordion to resize its item's body as a result of clicking on the child head? |
|
So here is how I solved this issue. Since I noticed that using Firebug and disabling the height property on the parent accordion body led to the behavior I was looking for, I added an event handler to the child accordion to unset that property when clicked:
<!-- This is an "inner" accordion --> <script type="text/javascript"> YUI( {gallery : 'gallery-2011.03.23-22-20'} ).use( 'node', 'gallery-accordion', function(Y) { var accordion = new Y.Accordion( { srcNode: "#Accordion<?php echo $currentCategory; ?>", useAnimation: true } ); var parentAccordionItem = Y.one("#category-item<?php echo $currentCategory; ?>"); var parentAccordionItemBody = parentAccordionItem.one('> .yui3-widget-bd'); accordion.on( "beforeItemExpand", function(attrs) { parentAccordionItemBody.setStyle('height',''); }, this ); accordion.render(); }); </script> |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group