Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dojo: BorderContainer - Toggle the left sidebar pane width to 0

I have a BorderContainer {design: "sidebar"} with a AccordionContainer {region: "left"} in the left pane. The Splitter is enabled to allow dragging the AccordionContainer 'closed', but with the splitter still available at the left edge to drag it back 'open'.

How can I toggle it from the current width to 0px with code? - How do I get the current width? - How do I set the width and redraw if necessary?

I do not want to removeChild/Addchild as this removes the splitter.

[ Edit: Solution: http://jsfiddle.net/6aNrp/274/ ]

Thanks

like image 374
Adamarla Avatar asked Nov 05 '22 07:11

Adamarla


1 Answers

I think You want dojo.marginBox.

like image 110
undefined Avatar answered Nov 07 '22 21:11

undefined