[-] BO : FixBug #PSCFV-9895 Mal function in products suppliers accordion
This commit is contained in:
@@ -1299,14 +1299,18 @@ product_tabs['Suppliers'] = new function(){
|
||||
$('#suppliers_accordion').accordion();
|
||||
// If one second was not enough to display page, another resize is needed
|
||||
setTimeout(function() {
|
||||
$('#suppliers_accordion').accordion({ heightStyle: "fill" });
|
||||
$('#suppliers_accordion').accordion({
|
||||
collapsible: true,
|
||||
autoHeight: true});
|
||||
}, 3000);
|
||||
}, 1000);
|
||||
|
||||
// Resize the accordion once the page is visible because of the bug with accordions initialized
|
||||
// inside a display:none block not having the correct size.
|
||||
$('#suppliers_accordion').parents('.product-tab-content').bind('displayed', function(){
|
||||
$('#suppliers_accordion').accordion({ heightStyle: "fill" });
|
||||
$('#suppliers_accordion').accordion({
|
||||
collapsible: true,
|
||||
autoHeight: true});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user