Scrollbars in the Accordion

jQuery UI Widgets
Post Reply
User avatar
baddog
Posts: 10
Joined: 05 Apr 2012, 19:51
Location: Calgary Alberta Canada
Contact:

21 Dec 2012, 21:09

Hey all

I am using Prime UI in one of my projects and came across an issue that made my accordion component have scrollbars displayed when I included a DIV within the accordion tab that drops down.

Code: Select all

<div id="default">  
    <h3>Title 1</h3>  
    <div>  
        <div class=myclass> content </div>
    </div>     
</div> 
if you have this issue with your accordion component I have found a fix

in the CSS that comes with Prime UI (accordion.css) you need to change the content line from

.pui-accordion .pui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;zoom:1;}

to

.pui-accordion .pui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;zoom:1;overflow:hidden !important;}

That should allow the accordion to still animate properly but will make those ridiculous scroll bars disappear.


Keep the Prime UI components coming! you guys over at Prime are doing great work!!
David Matrai | Propagator of all that is awesome! [PF 3.2 - Glassfish + Liferay 6.1 JSF2 Portlets] [PHP + PrimeUI]

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests