I am struggling with adjusting the size of the "Center pane" to fit the screen (100%). Despite trying various methods, I have not been successful in achieving the desired outcome. Can someone please point out what I am doing wrong and how can I fix it?
<div data-dojo-type="dijit/layout/BorderContainer" style="width: 100%; height: 100%" id="xxx-dijit-layout-app">
<div data-dojo-type="dijit/layout/ContentPane data-dojo-props=" region:'top'" id="xxx-dijit-layout-control">Top pane</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" id="xxx-dijit-layout-workspace">Center pane</div>
</div>
#xxx-dijit-layout-app {
width: 100%;
height: 100%;
}
#xxx-dijit-layout-control {
height: 100px;
background-color: red;
}
#xxx-dijit-layout-workspace {
height: 100%;
background-color: yellow;
}