Skip to content

Account for fixed position MR when scrolling to elements

What does this MR do?

This MR accounts for the new merge request fixed affix bar when scrolling to an element on the MR page.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

The fixed MR tabs bar was not being taken into account when shifting permalink scroll targets so that they are unobscured by navigation elements.

Screenshots (if relevant)

Issues discussion permalink: Screen_Shot_2016-10-26_at_12.29.26_AM

Merge request discussion permalink: Screen_Shot_2016-10-26_at_12.28.26_AM

Merge request diff permalink: Screen_Shot_2016-10-26_at_12.29.02_AM

Commit diff page permalinks work as well, but aren't highlighted currently (see: #23696 (closed))

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #23520 (closed)

Merge request reports

Loading