Bug Tracker

Ticket #2512: ui.accordion_autoHeight.diff

File ui.accordion_autoHeight.diff, 1.8 kB (added by neojp, 10 months ago)

UI Accordion replace autoheight by autoHeight

  • ui.accordion.js

     
    7070        options.headers.next().each(function() { 
    7171            maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); 
    7272        }).height(maxHeight - maxPadding); 
    73     } else if ( options.autoheight ) { 
     73    } else if ( options.autoHeight ) { 
    7474        var maxHeight = 0; 
    7575        options.headers.next().each(function() { 
    7676            maxHeight = Math.max(maxHeight, $(this).outerHeight()); 
     
    103103    }, 
    104104    destroy: function() { 
    105105        this.options.headers.next().css("display", ""); 
    106         if ( this.options.fillSpace || this.options.autoheight ) { 
     106        if ( this.options.fillSpace || this.options.autoHeight ) { 
    107107            this.options.headers.next().css("height", ""); 
    108108        } 
    109109        $.removeData(this.element, "ui-accordion"); 
     
    152152                toHide: toHide, 
    153153                complete: complete, 
    154154                down: down, 
    155                 autoheight: options.autoheight 
     155                autoHeight: options.autoHeight 
    156156            }); 
    157157        } else { 
    158158            $.ui.accordion.animations[options.animated]({ 
     
    160160                toHide: toHide, 
    161161                complete: complete, 
    162162                down: down, 
    163                 autoheight: options.autoheight 
     163                autoHeight: options.autoHeight 
    164164            }); 
    165165        } 
    166166    } else { 
     
    255255        animated: 'slide', 
    256256        event: "click", 
    257257        header: "a", 
    258         autoheight: true, 
     258        autoHeight: true, 
    259259        running: 0, 
    260260        navigationFilter: function() { 
    261261            return this.href.toLowerCase() == location.href.toLowerCase(); 
     
    286286                duration: options.duration, 
    287287                easing: options.easing, 
    288288                complete: function() { 
    289                     if ( !options.autoheight ) { 
     289                    if ( !options.autoHeight ) { 
    290290                        options.toShow.css("height", "auto"); 
    291291                    } 
    292292                    options.complete();