Indeed, setting it to FALSE will fix the issue you're experiencing
(it's basically, keeping height: 0 instead of applying height: auto).
It's odd to me that after some extensive re-facotring of the Accordion
class, no one actually tested it thoroughly.
On 24 Oct 2009, at 18:08, davidck wrote:
Jeremy, I noticed the issue you pointed out as well.
I fixed it by setting the new option returnHeightToAuto to true or
false. Forgot which one, basically the opposite of the default boolean
value.
On Oct 24, 11:34 am, Jeremy B <[email protected]> wrote:
Yeah I put the fix into my mootools-more and the JS error is gone,
but the
accordion does snap back open after it closes.
Jeremy Buelerwww.jbueler.com
On Sat, Oct 24, 2009 at 5:19 AM, soundseller
<[email protected]>wrote:
@oscar I tried your fix but
it still does not work as expected.
If I try to close all elements, the accordion snaps open again.
Any ideas?
I use following code:
var accordion = new Accordion($$('.toggler'),$$('.element'), {
opacity: 0,
alwaysHide: true,
onActive: function(toggler) { toggler.setStyle
('color',
'#000000'); },
onBackground: function(toggler) { toggler.setStyle
('color',
'#666666'); }
});
On Oct 24, 3:15 am, "Steve Onnis" <[email protected]> wrote:
I use
display : null
-----Original Message-----
From: Piotr Zalewa [mailto:[email protected]]
Sent: Saturday, 24 October 2009 12:32 AM
To: [email protected]
Subject: [Moo] Re: Fx.accordionError When using alwaysHide: true
code simplified a bit
the problem is with the display: -1
don't even know if it is the right usage - it's working if
commented
outhttp://mooshell.net/kxYpt/1
zalun
--
London, UK