How to reset position of p:dialog on show?
<p>I have PrimeFaces dialog, which is centered:</p>
<pre class="lang-html prettyprint-override"><code>&lt;p:dialog header=&quot;Contact Information&quot; widgetVar=&quot;companyAl&quot;
          modal=&quot;false&quot; position=&quot;center center&quot;&gt;
</code></pre>
<p>When I open it using:</p>
<pre class="lang-js prettyprint-override"><code>PF('companyAl').show();
</code></pre>
<p>it will appear on the screen center.
However, when I drag it somewhere else, close it and reopen it again,
it will appear again in the last position before closing instead of
on the screen center. How to force it to appear always on the screen center after</p>
<pre class="lang-js prettyprint-override"><code>PF('companyAl').show();
</code></pre>
<p>?</p>