File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<sj:accordion> tag questions

 
Glen Divers
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic