Vaadin Dialog with Ruby on Rails - Problem with Dialog Box Rendering on Far

We’re using Vaadin Dialog 2.2.1 with Ruby on Rails (ruby 2.6.3, rails 6.0.2).

In some cases, the dialog box would render in the lower, far left side of the screen; in other cases, it rendered center-screen as it should.

We eventually determined that TurboLinks was causing the problem. We removed the TurboLinks gem and the dialog always renders in the center as we want. So if you’re experiencing this problem and are able to go without TurboLinks, this might be your solution.