• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

<sj:accordion> tag questions

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I'm trying to use the accordion tag for the first time, and it's all pretty much working. However I have a couple of niggling problems and I'm hoping that someone can point me in the right direction.

The first is a minor niggle. The default behaviour when the jsp is displayed for the first time is for the first accordionItem to be open. I'd like the initial state to be all closed.

The second is more of a problem. In the generated html, the tag is assigning a style="height:1068px" to each div which is far far too big. Where is this being set? Ideally, I'd like each div to size itself according to the size of the content (which in my case varies considerably from "tab" to "tab"). Is this possible?

Regards
 
Glen Divers
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK - setting <sj:accordion active="false" collapsible="true"/> seems to take care of making the default display start with all accordion tabs shut.

Regarding the sizing of the individual accorion tabs, the autoHeight attribute seems relevant here, but doesn't appear to behave any differently whether is set "true" or "false", all the panels are sized the same size and way way too big. Anyone know what I'm missing?
 
reply
    Bookmark Topic Watch Topic
  • New Topic