Adamarla
Adamarla

Reputation: 812

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

Upvotes: 5

Views: 1461

Answers (1)

undefined
undefined

Reputation: 2101

I think You want dojo.marginBox.

Upvotes: 2

Related Questions