I have some collapsible widgets that I am "routing open" by way of a view().param switch on the view's "afterShow" event.
Basically, if a user clicks a nav link I am taking them to a different collapsible in that view. This all works well, however I may have a bug or some odd behavior on my hands.
If in my onAfterShow function I call:
...But I am left with a zero height .km-collapsible-content block:
<div data-role="collapsible-content" class="km-collapsible-content km-animated" style="height: 0px; display: block;"><div>
So I have called this after calling .expand() ...
Which works and shows the proper content.
Am I missing something or should this work straight away without a defined height change?