Projet

Général

Profil

0001-misc-center-page-on-newly-added-block-row-51307.patch

Frédéric Péters, 19 février 2021 19:56

Télécharger (889 octets)

Voir les différences:

Subject: [PATCH] misc: center page on newly added block row (#51307)

 wcs/qommon/static/js/qommon.forms.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/static/js/qommon.forms.js
491 491

  
492 492
  const $added_sub_widget = $('.wcs-block-add-clicked').find('.BlockSubWidget').last();
493 493
  if ($added_sub_widget.length) {
494
    $added_sub_widget[0].scrollIntoView();
494
    $added_sub_widget[0].scrollIntoView({behavior: "instant", block: "center", inline: "nearest"});
495 495
  }
496 496
});
497
-