Question

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

Was it helpful?

Solution

I think You want dojo.marginBox.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top