Hi,
I am trying to put the TabContainer into a loop. The aim is to set the size of the TabContainer
function getInfoWinTabContainer() {
try {
var tc = dijit.byId("tabs");
//On IE setContent destroys the dijit
if(tc === undefined)
{
if( (theLayerName != "Underground") && (idResults.length <= 1) )
{
// alert("1 record");
//map.infoWindow.resize(360, 200);
tc = new dijit.layout.TabContainer({
style : "width:354px;height:196px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));
}
else if ( (theLayerName != "Underground") && (idResults.length > 1) )
{
// alert("> 1 record");
// map.infoWindow.resize(900, 425);
tc = new dijit.layout.TabContainer({
style : "width:890px;height:420px;visibility:hidden;display:none;padding:2px;", id: "tabs"}, dojo.create("div", null, dojo.body()));
}
} else {
tc.domNode.style.display = 'none';
tc.domNode.style.visibility = 'hidden';
}