Page 1 of 1

jquerry-ui accordion adaptation

Posted: 07 May 2013, 10:38
by ForSSux
Hi,

In the link http://jqueryui.com/accordion/#no-auto-height you provided I found this ..heightStyle: "content"
I think it can serve to help me with the problem of the space under the items in the accordion
A picture speaks a thousand words so
accordione.PNG
accordione.PNG (6.6 KiB) Viewed 3347 times

At the same place they talk about hover and opening ....this would be great to.

I looked in the default.css and in a jquerry-ui-1.10.2 custom.css but have no clue where to add the heightStyle: "content"


Thanks for reading
Guy Forssman

Re: jauerry-ui accordion adaptation

Posted: 07 May 2013, 12:30
by Madsonic
hi there,

whats about

Code: Select all

  $(function() {
    $( "#accordion" ).accordion({
      heightStyle: "content"
    });
  });

Re: jauerry-ui accordion adaptation

Posted: 08 May 2013, 07:10
by ForSSux
I'm sorry to trouble you again

Code: Select all

$(function() {
    $( "#accordion" ).accordion({
      heightStyle: "content"
    });
  });
Can I just add this function in a .css file? Which file is the most approriate to add this function or if it's in place which file holds it.

Code: Select all

software# grep -R "#accordion" /var/subsonic/jetty/3470/webapp
/var/subsonic/jetty/3470/webapp/WEB-INF/jsp/left - Kopie.jsp:        $("#accordion").accordion( {active: true, autoHeight: false, navigation: false, collapsible: true, icons: icons} );
/var/subsonic/jetty/3470/webapp/WEB-INF/jsp/left.jsp:        $("#accordion").accordion( {active: true, autoHeight: false, navigation: false, collapsible: true, icons: icons} );
so I assume I add this function in left.jsp?

Kind Regards
Guy ForssmanI