mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] No need to resize body on every content update.
This commit is contained in:
parent
48b8a536df
commit
da9aa7d8c9
1 changed files with 0 additions and 7 deletions
|
@ -206,12 +206,6 @@
|
|||
callback();
|
||||
// Force scrollTop on page load
|
||||
$('html, body').scrollTop(0);
|
||||
|
||||
// Resize body after the animation finishes (0.2s css transition)
|
||||
// https://github.com/YunoHost/yunohost-admin/blob/231aac076a3aa836409b0d33fe02e48975990b7a/src/css/style.less#L92
|
||||
setTimeout(function() {
|
||||
$('body').resize();
|
||||
}, 210);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -246,7 +240,6 @@
|
|||
callback();
|
||||
// Force scrollTop on page load
|
||||
$('html, body').scrollTop(0);
|
||||
$('body').resize();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue