Docking the Comment Dialog

Review Request #10213 — Created Oct. 10, 2018 and updated — Latest diff uploaded

Information

Review Board
master
7b001f4...

Reviewers

Comment Dialog: Docking

When reviews have the tendency to get longer the Comment Dialog
becomes harder to keep track of. To fix this,the comment
dialog has been docked to the page. This means when users open
up a comment, the dialog will stay on the page with the user
during the review process.

Users can drag around the dialog with ease with the use of
jQuery UI and standard jQuery mouse events. Functions have been
implemented to ensure that the Comment Dialog remains in the content
area. This is to prevent users from accidentally moving the dialog
off-screen.

Ran and passed all of the JavaScript Unit Tests.

Added a new test to check whether the position was being set
correctly on mousedown and mouseup.