Page MenuHomePhabricator

Hiding unused parameters makes the sidebar jump to the wrong header in some cases
Closed, ResolvedPublic

Description

On a multipart transclusion with at least two templates and a longer list of parameters on both, hiding the unused parameters on the upper template can lead to a weird scroll to the lower templates header in the sidebar.

When hiding unused parameters, the sidebar should always scroll to the header of the template, where the parameters where hidden.

Event Timeline

Change 768030 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Scroll template outline into view when hiding unused

https://gerrit.wikimedia.org/r/768030

Change 768030 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Scroll template outline into view when hiding unused

https://gerrit.wikimedia.org/r/768030

Change 769945 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/VisualEditor@master] Extract template scrollToTop method

https://gerrit.wikimedia.org/r/769945

WMDE-Fisch moved this task from Demo to Done on the WMDE-TechWish-Sprint-2022-03-02 board.

Change 769945 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Extract template scrollToTop method

https://gerrit.wikimedia.org/r/769945

Change 818996 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/VisualEditor@master] Simplify partly redundant findFirstSelectedItem implementation

https://gerrit.wikimedia.org/r/818996

Change 818996 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Simplify partly redundant findFirstSelectedItem implementation

https://gerrit.wikimedia.org/r/818996