Dojo: BorderContainer - Toggle the left sidebar pane width to 0
-
13-11-2019 - |
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
Solution
I think You want dojo.marginBox.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow