jQuery UI Widgets Forums Navigation Expander Expander does not shrink when using explicit height

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 7 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • stephan


    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:

    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.



    Hello Stephan,

    The only way to achieve this is to set the height property to ‘auto’. It will then shrink the content when it collapses.

    As for your second sidenote, we will look into the reported issue. Thank you for the feedback.

    Best Regards,

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.