Ticket #2512: ui.accordion_autoHeight.diff
| File ui.accordion_autoHeight.diff, 1.8 kB (added by neojp, 10 months ago) |
|---|
-
ui.accordion.js
70 70 options.headers.next().each(function() { 71 71 maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height()); 72 72 }).height(maxHeight - maxPadding); 73 } else if ( options.auto height ) {73 } else if ( options.autoHeight ) { 74 74 var maxHeight = 0; 75 75 options.headers.next().each(function() { 76 76 maxHeight = Math.max(maxHeight, $(this).outerHeight()); … … 103 103 }, 104 104 destroy: function() { 105 105 this.options.headers.next().css("display", ""); 106 if ( this.options.fillSpace || this.options.auto height ) {106 if ( this.options.fillSpace || this.options.autoHeight ) { 107 107 this.options.headers.next().css("height", ""); 108 108 } 109 109 $.removeData(this.element, "ui-accordion"); … … 152 152 toHide: toHide, 153 153 complete: complete, 154 154 down: down, 155 auto height: options.autoheight155 autoHeight: options.autoHeight 156 156 }); 157 157 } else { 158 158 $.ui.accordion.animations[options.animated]({ … … 160 160 toHide: toHide, 161 161 complete: complete, 162 162 down: down, 163 auto height: options.autoheight163 autoHeight: options.autoHeight 164 164 }); 165 165 } 166 166 } else { … … 255 255 animated: 'slide', 256 256 event: "click", 257 257 header: "a", 258 auto height: true,258 autoHeight: true, 259 259 running: 0, 260 260 navigationFilter: function() { 261 261 return this.href.toLowerCase() == location.href.toLowerCase(); … … 286 286 duration: options.duration, 287 287 easing: options.easing, 288 288 complete: function() { 289 if ( !options.auto height ) {289 if ( !options.autoHeight ) { 290 290 options.toShow.css("height", "auto"); 291 291 } 292 292 options.complete();
