I found that when you explicitly specify the height for an jqxExpander it will nor proberly shrink when you collapse the expander. Have a look at this fiddle: http://jsfiddle.net/S9xBj/5/
Now double click the header bar: the extra content will not move upwards, even though I would expect it to do that. I use explicit heights when I absolutely need them for the content, but I would still expect an expander to properly expand and shrink while respecting the explicit height in expanded mode.
The same wrong behaviour accors when using “height: ‘100%’ ” instead of the “height: ‘400px'”
If you look closely you will also note that the height of the body part is in fact wrong. Removing the comment in front of “$(‘#myDialog’).jqxExpander(‘refresh’);” will fix this strange behaviour. Moving the creation of jqxExpander downwards will also fix it, but for me that is not an option, because in my real code I do add dynamic content after creating the eleemnt. this is not really a problem for me, I just thought I’d mention it.