Title: Jquery EasyUI Accordion Post by: foodil on March 02, 2012, 02:12:22 AM Code: <div id="aa" class="easyui-accordion" style="width:300px;height:200px;"> Css file (accordion part) Code: .accordion{ The problem is I would like to making the same effect like jsfiddle sidebar, when i put the test word ,it can not display correctly. It can display only when all panels are slided up. I have tried to look at some css to see whether the problem occur but i just can not figure it out.Thank you. [1]:(http://i.stack.imgur.com/sJRrG.jpg) [2]:(http://i.stack.imgur.com/cIBH0.jpg) Title: Re: Jquery EasyUI Accordion Post by: foodil on March 06, 2012, 11:13:02 AM I have post it to the stackoverflow and i hope the result help:
The text isn't displayed properly because the accordion uses a fixed height, and it then calculates the panel-body and the header heights. So when you expand a panel, the text will not be displayed anymore (or partially) because it uses up all space. A simple workaround for this is to add some height after pageload to the easyui-accordion container to compensate for your text. see http://jsfiddle.net/hFsxP/15/ |