jquerry-ui accordion adaptation

Got an idea? Missing something? Post your feature request here.
ForSSux
Contributor
Contributor
Posts: 30
Joined: 02 Apr 2013, 14:07
Has thanked: 10 times
Been thanked: 12 times

jquerry-ui accordion adaptation

Unread post 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 3290 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
Last edited by ForSSux on 08 May 2013, 10:36, edited 1 time in total.
User avatar
Madsonic
Administrator
Administrator
Posts: 984
Joined: 07 Dec 2012, 03:58
Answers: 7
Has thanked: 1201 times
Been thanked: 470 times

Re: jauerry-ui accordion adaptation

Unread post by Madsonic »

hi there,

whats about

Code: Select all

  $(function() {
    $( "#accordion" ).accordion({
      heightStyle: "content"
    });
  });
These users thanked the author Madsonic for the post:
ForSSux
Rating: 7.69%
ForSSux
Contributor
Contributor
Posts: 30
Joined: 02 Apr 2013, 14:07
Has thanked: 10 times
Been thanked: 12 times

Re: jauerry-ui accordion adaptation

Unread post 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
Post Reply