Last modified: 2014-09-03 14:25:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63938, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61938 - Improve automatic scrolling on preview (can push buttons out of sight)
Improve automatic scrolling on preview (can push buttons out of sight)
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-26 01:37 UTC by Eduard Braun
Modified: 2014-09-03 14:25 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eduard Braun 2014-02-26 01:37:38 UTC
When pressing the preview button there seems to be some sort of automatic detection that decides whether to
a) jump to the first line of the posts preview to bring it in sight or
b) don't jump when the preview is already in sight to prevent
   the page "jumping around" for small posts with only little text.

However this detection does not seem to take the input field and the buttons into account.

Therefore it can happen that by pressing preview the buttons at the bottom and parts of the input field are "pushed out" of the currently visible browser viewport as soon as the preview is displayed, even if all UI elemnts would fit into the height of the browser window.




While this normally only happens on first preview on boards this behaviour is even more annoying when visiting a specific topic via a permalink and replying to the topic (therefore replying at the very end of the page.

In this situation it can even happen that every time one previews the post the buttons are pushed out of view again:
- When pressing preview the old preview is deleted first.
- This results in the page becoming "shorter"
- The browser might therefore scroll up (since it can't scroll past the end of the page)
- Afterwards the new preview is generated.
- The browser does not scroll again but everything after the preview is pushed down.
- As a result even when not changing any text (therefore creating the exact same preview) one is able to scroll the browser up just by pressing preview.


All the above was tested with Windows 7 using Firefox 27.0.1

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links