I'm building an angular 2 application, and am building a dialog modal form, using PrimeNg p-dialog. I'm noticing that in some instances, the dialog window is being displayed at the far left of the screen (rather than being centered). However, on dragging the browser window, the dialog gets centered correctly.
I'm using a very simple dialog (as per primeng documentation), and afterwards setting display to true:
<p-dialog header="Title" [(visible)]="display">
Content
</p-dialog>
Any ideas why the dialog is not being centered from the beginning?