Every dialog I use including the ajax loading dialog is not centred on the screen. The dialogs in the labs work as expected so I'm a bit confused. The Ajax loading dialog is my simplest example. It always appears on the right side of the screen and each invocation it moves a little bit more to the right.
Code: Select all
<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
<p:dialog modal="true" widgetVar="statusDialog" header="Status"
draggable="false" closable="false">
<p:graphicImage value="#{request.contextPath}/images/ajaxloading.gif" />
</p:dialog>
Edit: BTW I did try explicitly setting the position="center" and position="100,100" but it had no effect.