Yii Framework Forum: Class Hide Cjuiaccordion - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Class Hide Cjuiaccordion Rate Topic: -----

#1 User is offline   rigel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 26-October 12

Posted 18 December 2012 - 02:33 PM

Hi ,

I have a Cjuiaccordion in my view. Which I would like to keep hidden until the user clicks on CHtml::ajaxlink.
I have written a JQuery to toggle the show and hide class for the Accordion.(using addClass('hide') and addClass('show).
The default class is hide.
The problem is when the accordion is displayed. The height of accordion element goes to 0px. element.style.

If I reverse the toggle action as in if I keep the default class as class='show' and on ajaxlink click change the class to hide. The height of the accordion content style is auto *works as I wish.

How can i deal with this situation. I want the height of content area for all panels in accordion to auto.
0

#2 User is offline   rigel 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 26-October 12

Posted 20 December 2012 - 02:09 AM

Found work around
I am using
clearStyle option in accordion. But it is not smooth. any help?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users