[richfaces-issues] [JBoss JIRA] (RF-12574) rich:accordion height of first element is wrongly computed

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu Nov 29 19:06:22 EST 2012


    [ https://issues.jboss.org/browse/RF-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12738331#comment-12738331 ] 

Brian Leathem commented on RF-12574:
------------------------------------

The call to _fitToHeight_ is initiated during the component _init_ method by binding to the document.ready jquery event:

{code}
if (this.isSelected()) {
    var item = this;
    $(document).ready(function() {
        item.__fitToHeight(item.getTogglePanel());
    });
}
{code}

Problem is, when the ajax renders, and the init method is run, the document is already "ready", so the event executes immediately.
                
> rich:accordion height of first element is wrongly computed
> ----------------------------------------------------------
>
>                 Key: RF-12574
>                 URL: https://issues.jboss.org/browse/RF-12574
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.3.0.M2
>         Environment: RichFaces 4.3.0.20121024-M2
> Metamer 4.3.0.20121024-M2
> JBoss AS 7.1.1.Final
> OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux
> Firefox 16.0 @ Linux x86_64 / Chrome 21.0.1180.89 @ Linux x86_64 / IE9
>            Reporter: Jiří Štefek
>            Assignee: Brian Leathem
>            Priority: Critical
>              Labels: regression
>             Fix For: 4.3.0.M3
>
>
> When some other item than first of the rich:accordion is selected and then the first item is selected, the height of the content of the first item is wrongly computed and its height is as big as whole accordion height. 
> In 4.2.3 CR1 it works correctly.
> Problem only occurs when @switchType is ajax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list