Page MenuHomePhabricator

Fix anchor-clicking scroll positions
ClosedPublic

Authored by epriestley on Jan 28 2015, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 11, 8:46 PM
Unknown Object (File)
Sat, Aug 31, 12:12 PM
Unknown Object (File)
Sat, Aug 31, 10:35 AM
Unknown Object (File)
Thu, Aug 29, 12:59 PM
Unknown Object (File)
Mon, Aug 26, 11:38 PM
Unknown Object (File)
Sat, Aug 24, 12:23 PM
Unknown Object (File)
Thu, Aug 22, 1:29 AM
Unknown Object (File)
Aug 19 2024, 3:34 AM
Subscribers

Details

Summary

Fixes T7069. When jumping to a comment anchor, we get the scroll positions wrong.

Partly this is fixing some calcaulations; partly, the "show older comments" and "scroll anchor" stuff were fighting over the scroll position. Since the anchor can take care of things on its own, just let it handle stuff.

Test Plan
  • Clicked comment anchors.
  • Loaded pages with anchors in the URI.
  • Loaded pages with anchors hidden behind "show older comments".

In all cases, got the right scroll position.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix anchor-clicking scroll positions.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 28 2015, 3:27 PM
This revision was automatically updated to reflect the committed changes.