Page MenuHomePhabricator

Show Preview Scrolls to the bottom of the preview (scrolls the edit box into view?)
Closed, DuplicatePublic

Description

I am using the master version of CodeMirror (4.0.0) on MediaWiki 1.34.1. When CodeMirror is enabled in the editor, the Show Preview button scrolls to a random section near the bottom of the page, which is usually the References section. It should be scrolling to the top of the page instead (or wherever the preview is located depending on preferences). The same issue occurs on Wikipedia as well.

Event Timeline

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

Thanks for reporting this. @Vishkujo: Which exact browsers and browser versions has this been tested with?

I tested it on Firefox 77.0.1, Chrome 83.0.4103.97, and Edge 44.18362.449.0.

Happens on all three of those browsers.

The same issue occurs on Wikipedia as well.

Can you provide a full link where to see this, and a clear list of steps to reproduce? Thanks!

The same issue occurs on Wikipedia as well.

Can you provide a full link where to see this, and a clear list of steps to reproduce? Thanks!

I think it does it on any page, or at least any long page.
Here's one example: https://en.wikipedia.org/wiki/Bleach_(manga)
Click edit, turn on the syntax highlighter, click Show Preview (you don't have to add anything to the page), and then the preview will automatically scroll to the references section.

matmarex renamed this task from Show Preview Scrolls to Random Section to Show Preview Scrolls to the bottom of the preview (scrolls the edit box into view?).Jun 15 2020, 8:14 PM