Ask questions and get good answers on mb.jQuery.components

Hello, We have a mbcontainer wich has inside a kind of tree-structure ( as the windows file directories). Is there any way I can resize the mbcontainer while I´m opening folders ( notice that the container has to be growing ).

What we need is a kind of auto-resize depending of the content of the container.

Thank you,

asked Dec 20 '10 at 12:42

madridGirl's gravatar image

madridGirl
1


mb.containerPlus expose a method to change the size: $('#yourContainerID').mb_resizeTo(w,h); You can add a call at this methd on the callback of the tree expad passing as height the height of the tree container.

answered Dec 20 '10 at 15:00

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

edited Dec 20 '10 at 15:00

Your answer
toggle preview

jQuery main site - Matteo Bicocchi