Support » Plugin: Accordion Shortcode » Auto height based on content size is broken.

  • The code here:

    $query_atts = shortcode_atts( array(
    				'autoHeight'  => false,
    				'disabled'   => false,
    				'active'  => 0,
    				'animated'   => 'slide',
    				'clearStyle'  => false,
    				'collapsible'  => false,
    				'event'   => 'click',
    				'fillSpace'  => false
    			), $attr);

    Needs to include the heightStyle: content as an option. Otherwise content overflows into other accordion items when the first accordion has a shorter content area than the succeeding accordion items. I have fixed it by adding the following to the accordion:

    $query_atts = shortcode_atts( array(
    				'autoHeight'  => false,
    				'disabled'   => false,
    				'active'  => 0,
    				'animated'   => 'slide',
    				'clearStyle'  => false,
    				'collapsible'  => false,
    				'event'   => 'click',
    				'fillSpace'  => false,
    				'heightStyle' => 'content'
    			), $attr);

    http://wordpress.org/plugins/accordion-shortcode/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Auto height based on content size is broken.’ is closed to new replies.