Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't my code to expand all panes in an AjaxControlToolkit Accordion work in Firefox?
    primarykey
    data
    text
    <p>I'm using an AjaxControlToolkit Accordion with the following code to expand all AccordionPanes (I'm calling this function with an HTML anchor):</p> <pre><code>function expandViewAll() { var behavior = $get("&lt;%= accViewIncident.ClientID %&gt;").AccordionBehavior; for (var i = 0; i &lt; behavior._panes.length; i++) { behavior.get_Pane(i).content.style.display = 'inline'; behavior.get_Pane(i).content.height = behavior.get_Pane(i).content.scrollHeight; behavior.get_Pane(i).content.style.height = behavior.get_Pane(i).content.scrollHeight + 'px'; } } </code></pre> <p>I also have a corresponding <code>collapseViewAll()</code> function.</p> <p>The expand function works properly in Chrome and IE 9, but in Firefox (latest version) it doesn't; it expands all the panes, but their contents are not visible except for the pane that was selected at the time the expand link was clicked. Here's an image illustrating this:</p> <p><img src="https://i.stack.imgur.com/ozPmD.png" alt="expand function broken in Firefox"></p> <p>The "Consumer Information" and "Incident Information" areas should have information displayed, but they're coming up empty. No errors come up in Firebug console. Again, this works as expected in Chrome (latest) and IE 9 (I don't have a way to test in other IE versions).</p> <p>I know this isn't much to go on, but does anybody know of any issues with Accordion controls in Firefox that might explain this, and even more importantly, is there a way to fix it? I'll be happy to provide more information as needed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload