This topic contains 1 reply, has 2 voices, and was last updated by Dimitar 13 years ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Navigation › Expander › Expander does not shrink when using explicit height
Tagged: expander, height, jqxExpander
This topic contains 1 reply, has 2 voices, and was last updated by Dimitar 13 years ago.
Hi,
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.
SIDENOTE 1:
The same wrong behaviour accors when using “height: ‘100%’ ” instead of the “height: ‘400px'”
SIDENOTE 2:
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.
Regards,
Stephan
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,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
You must be logged in to reply to this topic.