Should a widget added in a tabset pane get sized and positioned according to the pane? I can't find anything in examples or documentation that speaks to this. Am very new to SmartClient. When I do the following, the ListGrid in the first pane sizes within the pane (maybe that's just an accident), but the Calendar in the second pane uses up the whole browser screen, occluding the TabSet. Do I need to hardcode the size of the TabSet and the Calendar, or is there a way (using the right layout calls), to get the contents of a pane to conform to whatever the pane's sizing is (I know how to enable scroll bars on widgets, so if a widget stays within the pane, and some of it isn't visible, then the user will simply need to scroll the rest into view.
So, the question again is: what is the recommended way to get a widget to conform to the size and position of the pane that it is associated with? Thanks for any light you can shed.
My code:
isc.TabSet.create({
top:40, left:40, width:1000, height:800,
tabs:[
{ title:"Voter List",
pane:isc.ViewLoader.create({
autoDraw:false,
viewURL:"./votergrid.js",
loadingMessage:"Loading Grid..."})
},
{ title:"Calendar",
pane:isc.ViewLoader.create({
autoDraw:false,
viewURL:"./campaigncalendar.js",
loadMessage:"Loading Campaign Calendar..."})
}
]
});
And here is the calendar widget create:
isc.Calendar.create({
ID: "eventCalendar",
data: eventData
});
So, the question again is: what is the recommended way to get a widget to conform to the size and position of the pane that it is associated with? Thanks for any light you can shed.
My code:
isc.TabSet.create({
top:40, left:40, width:1000, height:800,
tabs:[
{ title:"Voter List",
pane:isc.ViewLoader.create({
autoDraw:false,
viewURL:"./votergrid.js",
loadingMessage:"Loading Grid..."})
},
{ title:"Calendar",
pane:isc.ViewLoader.create({
autoDraw:false,
viewURL:"./campaigncalendar.js",
loadMessage:"Loading Campaign Calendar..."})
}
]
});
And here is the calendar widget create:
isc.Calendar.create({
ID: "eventCalendar",
data: eventData
});
Comment