I have the following borderContainer whose size is hardcoded. I'm trying to change it dynamically based on the screen resolution :
<div id="border1" dojoType="dijit.layout.BorderContainer"
style="width: 1010px; height: 500px">
...
</div>
I tried to do the following to change it dynamically and it does not seem to work
dojo.require("dojo/window");
var bc = dijit.byId("borderContainer");
dojo.setStyle(bc.domNode, "height", screen.height+"px");
dojo.setStyle(bc.domNode, "width", screen.width+"px");
Try the following.
Get the
BorderContainer:and then set the style
setfor itsstyleproperty: