Tweak the hard coded top scroll padding for the parameter list

Currently the sticky size is exactly 114px. With 115px you also can
see an auto scroll effect on multi part transclusions when you hit
that 1px sweat spot at the top of the list.

Bug: T312926
Change-Id: Iebfe2e2c6360c650755cd985157949a26a5287a4
This commit is contained in:
WMDE-Fisch 2022-08-01 14:07:31 +02:00
parent f8fd06dbaf
commit 8ae4d291df

View file

@ -91,5 +91,5 @@ ve.ui.MWTransclusionOutlineParameterWidget.prototype.toggleHasValue = function (
ve.ui.MWTransclusionOutlineParameterWidget.prototype.scrollToView = function () { ve.ui.MWTransclusionOutlineParameterWidget.prototype.scrollToView = function () {
// make sure parameter is visible and scrolled underneath the sticky // make sure parameter is visible and scrolled underneath the sticky
// TODO find a dynamic way to get height of the sticky part // TODO find a dynamic way to get height of the sticky part
this.scrollElementIntoView( { animate: false, padding: { top: 115 } } ); this.scrollElementIntoView( { animate: false, padding: { top: 114 } } );
}; };