Refactor out the code for centering diff collapse buttons

Review Request #8444 — Created Sept. 27, 2016 and submitted — Latest diff uploaded

Information

Review Board
release-3.0.x
d1df202...

Reviewers

The code for centering diff collapse buttons has been refactored into the
RB.CenteredElementManager. This view centres a set of elements within
their respective container elements.

Verified the collapsable diff context and diff viewer collapse buttons
still centred correctly.

reviewboard/staticbundles.py
reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
reviewboard/static/rb/js/views/diffFragmentQueueView.js
Loading...