rich:ModalPanel show & hide breaks Modal panel layout
-----------------------------------------------------

                 Key: RF-8502
                 URL: https://jira.jboss.org/jira/browse/RF-8502
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component
    Affects Versions: 3.3.1
         Environment: Java 1.5, JBOSS 4.3, RichFacess 3.3.1, JSF 1.2
            Reporter: Eduardo RC


When using Javascript to show and hide any ModalPanel the second show action 
the second show action shows the ModalPanel in the top left instead of the 
center of the screen

To create a demo:
1.- Create a rich:modalPanel with  showWhenRendered="false" 
2.- Create a button to show using the javascript  code : 
Richfaces.showModalPanel('<ID>')  or #{rich:component('<ID>')}.show();
3.- Create a button into the ModalPanel to hide using the javascript code:  
Richfaces.hideModalPanel('<ID>') or #{rich:component('<ID>')}.hide();

To Reproduce:
1.- Clik on the show button
2.- Click  on the hide button
3.- Click on the show button again. The window now appears in left top instead 
of centered




Example code:

<html>
<f:view>
        <head></head>
        <body>
                <rich:modalPanel id="pnlAbout" resizeable="true" 
showWhenRendered="false" width="300" height="300">
                        <f:facet name="header">CLOSEME</f:facet>
                        <h:outputLink value="javascript:void(0);" 
onclick="#{rich:component('pnlAbout')}.hide();return false;">
                                CLOSEME
                        </h:outputLink>
                </rich:modalPanel>

                <a href="javascript:void(0);" 
onclick="Richfaces.showModalPanel('pnlAbout');return false;">OPEN ME</a>
        </body>
</f:view>       
</html>





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to