Skip to content

Fix boards top position on sidebars

Scott Stern requested to merge ss/fix-boards-top-position into master

What does this MR do?

This MR leverages MutationObserver to calculate the header height from top for boards setting sidebar and issue sidebar on boards.

The reason we needed a mutation observer was because there was a race condition on the performance header showing up on load.

Repro

  1. Go to a group/project issue board or group -> Epic board.
  2. on the keyboard, type p + b
  3. Click on an issue/epic card OR list settings button.
  4. Check the distance from the top from the header to the sidebar and make sure its flush against the header

Resolves #329625 (closed)

Screenshots (strongly suggested)

2021-05-19_16.08.53

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Scott Stern

Merge request reports

Loading