ICEmobile
  1. ICEmobile
  2. MOBI-559

autoHeight accordion opened pane height not correct on first render

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1 Final
    • Fix Version/s: 1.2 Beta
    • Component/s: Faces, Spring
    • Labels:
      None
    • Environment:
      n/a

      Description


      When the accordion is first rendered, the height of the opened pane is not correct. Only after opening and closing the pane is the correct calculated autoHeight applied.

        Activity

        Hide
        Judy Guglielmin added a comment - - edited

        It will only be correct on the first time if there is a maxHeight to calculate. due to the time it takes to render all the contentPanes/accordionPanes, as well as client != "true", it may not have any other divs to calculate the height of. The only way to ensure the pane is fully shown the first time is to just let it be the height it needs for content. THen if a maxHeight is available, use it instead.

        Show
        Judy Guglielmin added a comment - - edited It will only be correct on the first time if there is a maxHeight to calculate. due to the time it takes to render all the contentPanes/accordionPanes, as well as client != "true", it may not have any other divs to calculate the height of. The only way to ensure the pane is fully shown the first time is to just let it be the height it needs for content. THen if a maxHeight is available, use it instead.
        Hide
        Judy Guglielmin added a comment - - edited

        can only guarantee a maxHeight on first render if we either put a delay in or make all the contentPane's client="true" with all text in them.

        Show
        Judy Guglielmin added a comment - - edited can only guarantee a maxHeight on first render if we either put a delay in or make all the contentPane's client="true" with all text in them.
        Hide
        Philip Breau added a comment - - edited

        What can't the script just calculate the height when it first runs?

        Show
        Philip Breau added a comment - - edited What can't the script just calculate the height when it first runs?

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: