• 
      

    Refactor out the code for centering diff collapse buttons

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

    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.

    Description From Last Updated

    In your summary/description, you have a variety of spellings of "center". I guess "centring" is maybe Canadian, but the implementation …

    daviddavid

    This function doesn't take any args (anymore?)

    daviddavid

    Doc comment?

    daviddavid

    Doc comment?

    daviddavid

    Doc comment?

    daviddavid

    Doc comment?

    daviddavid

    Doc comment?

    daviddavid

    Trailing comma?

    daviddavid

    Can we call the parameter elements instead of els?

    daviddavid

    There's an extra blank line here.

    daviddavid
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
    2. 
        
    david
    1. 
        
    2. Show all issues

      This function doesn't take any args (anymore?)

    3. Show all issues

      Doc comment?

    4. Show all issues

      Doc comment?

    5. Show all issues

      Doc comment?

    6. Show all issues

      Doc comment?

    7. Show all issues

      Doc comment?

    8. Show all issues

      Trailing comma?

    9. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
    2. 
        
    david
    1. 
        
    2. Show all issues

      In your summary/description, you have a variety of spellings of "center". I guess "centring" is maybe Canadian, but the implementation in the code uses "centered", and "centeres" just seems incorrect. I'd prefer "centered" / "centers" / "centering".

      And now none of those look like words =P

    3. Show all issues

      Can we call the parameter elements instead of els?

    4. 
        
    brennie
    brennie
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/ui/views/centeredElementManager.es6.js
          reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js
          reviewboard/static/rb/js/views/diffFragmentQueueView.js
      
      
    2. 
        
    david
    1. 
        
    2. Show all issues

      There's an extra blank line here.

    3. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (a080b44)