misc: center page on newly added block row (#51307)

This commit is contained in:
Frédéric Péters 2021-02-19 19:56:25 +01:00
parent 827c715a9f
commit 9184f3ae4d
1 changed files with 1 additions and 1 deletions

View File

@ -491,6 +491,6 @@ $(function() {
const $added_sub_widget = $('.wcs-block-add-clicked').find('.BlockSubWidget').last();
if ($added_sub_widget.length) {
$added_sub_widget[0].scrollIntoView();
$added_sub_widget[0].scrollIntoView({behavior: "instant", block: "center", inline: "nearest"});
}
});