Attempt to fix shifting of elements when a modal dialog is opened

Reviewer: Dan Jao