mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
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:
parent
f8fd06dbaf
commit
8ae4d291df
|
@ -91,5 +91,5 @@ ve.ui.MWTransclusionOutlineParameterWidget.prototype.toggleHasValue = function (
|
|||
ve.ui.MWTransclusionOutlineParameterWidget.prototype.scrollToView = function () {
|
||||
// make sure parameter is visible and scrolled underneath the sticky
|
||||
// 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 } } );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue