I need to get the actual width and height of the shareddiv before populating it with content so that i can determine how many panels can fit into the shareddiv based on the device or browser resolution
<div id="outerdiv">
<div style="width: 100% ;height:100%;" id="sharedDiv" ></div>
</div>
The alert returns different values at different locations in the code.
var divow = document.getElementById('sharedDiv').offsetWidth;
alert("div offsetwidth"+divow);