0001-misc-center-page-on-newly-added-block-row-51307.patch
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 |
- |