function toggleDiv() { // If statement to check if the checkbox is checked. if (dijit.byId("ToggleLeft").checked) { //Sets the left div's display CSS property to inline and then setting the //width property dojo.setStyle(dijit.byId("leftDiv").domNode, 'display', 'inline'); dojo.byId("leftDiv").style.width = '285px'; } else { // Sets the display css property to "none" which makes the element disappear dojo.setStyle(dijit.byId("leftDiv").domNode, 'display', 'none'); }; }
Solved! Go to Solution.
You have to call resize method of the borderContainer object when any of the child elements resized. Add the below line to the end of the function.
dijit.byId("borderContainerID").resize();