Popup not displayed at the center of the page in IE
pradeep_nayak Feb 17, 2011 6:51 AMI'm using richfaces4 M5 .
I need to display a popup on click of a button.
popup code is like this
<rich:popupPanel id="confirmation" domElementAttachment="parent"
autosized="true">
<h:panelGrid>
<h:panelGrid columns="2">
<h:outputText value="#{label.PlanHist_Popup_msg}"
style="FONT-SIZE: large;" />
</h:panelGrid>
<h:panelGroup>
<h:commandButton type="button"
value="#{label.PlanHist_Popup_Y}"
styleClass="button buttonFormat"
onclick="#{rich:component('confirmation')}.hide();reverse(); return false;">
</h:commandButton>
<h:commandButton type="button" value="#{label.PlanHist_Popup_N}"
styleClass="button buttonFormat"
onclick="#{rich:component('confirmation')}.hide();return false" />
</h:panelGroup>
</h:panelGrid>
</rich:popupPanel>
I invoke the popup like this
<a4j:commandLink rendered="#{history.reversible}"
oncomplete="#{rich:component('confirmation')}.show();">
<a4j:param value="#{history.txdId}"
assignTo="#{planHistoryUIBean.txnId}" />
<h:graphicImage id="image2"
alt="#{label.PlanHistory_buttonLebel3}"
url="/images/u240.png" style="border:none;" />
<h:outputText value="#{history.txdId}" />
</a4j:commandLink>
Popup is getting displayed properly in forefox.
But in IE 7 its not displayed at the center of the page. Its getting displayed as a panal at the bottom of the page.
Any idea am I doing something wrong ?