Page MenuHomePhabricator

Scrolling to lead paragraph doesn't work on pages with no headings
Closed, ResolvedPublic

Assigned To
Authored By
matmarex
Jul 7 2020, 6:44 PM
Referenced Files
F31920139: image.png
Jul 7 2020, 6:44 PM
F31920133: image.png
Jul 7 2020, 6:44 PM
F31920131: image.png
Jul 7 2020, 6:44 PM
F31920137: image.png
Jul 7 2020, 6:44 PM
F31920135: image.png
Jul 7 2020, 6:44 PM
F31920141: image.png
Jul 7 2020, 6:44 PM

Description

Scrolling to lead paragraph doesn't work on pages with no headings.

Compare these two pages, where the first has no headings, and the second has a "Sources" heading near the end:

After tapping the edit pencil, you see the lead paragraph in the first, but you see the infobox in the second:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 610136 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/MobileFrontend@master] Fix scrolling to lead paragraph when there are no sections

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

Change 610138 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: Double-check that section is not 'undefined'

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

Change 610138 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: Double-check that section is not 'undefined'

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

Change 610136 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Fix scrolling to lead paragraph when there are no sections

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