Well, my point is that vstack with vpolicy set to “fill” and its only child height is set to 50% DOES auto fill - I don’t need to remove the 50% height to gain this functionality as shown in the sample below. Now look at hPolicy specified as “fill” for vstack, yes you are right - if I remove the width property of 50% then I do gain this “fill” functionality but again I did not have to do this for the height property.
I am not saying it doesn’t work the way it should. I just want an explanation as to why the two properties behave differently.
VStack sample with vPolicy/hPolicy set to “fill” but only vPolicy is taken:
isc.VStack.create({height: "100%", width:"100%", backgroundColor:"red",vPolicy:"fill",hPolicy:"fill",members:[isc.ListGrid.create({
ID: "countryList",
width:"50%", height:"50%", alternateRecordStyles:true,
dataSource: worldDS,
fields:[
{name:"countryCode", title:"Code", width:50},
{name:"countryName", title:"Country"},
{name:"capital", title:"Capital"},
{name:"continent", title:"Continent"}
],
autoFetchData: true,
showFilterEditor: true
})]});
HStack sample with vPolicy/hPolicy set to “fill” but only hPolicy is taken:
isc.HStack.create({height: "100%", width:"100%", backgroundColor:"red",vPolicy:"fill",hPolicy:"fill",members:[isc.ListGrid.create({
ID: "countryList",
width:"50%", height:"50%", alternateRecordStyles:true,
dataSource: worldDS,
fields:[
{name:"countryCode", title:"Code", width:50},
{name:"countryName", title:"Country"},
{name:"capital", title:"Capital"},
{name:"continent", title:"Continent"}
],
autoFetchData: true,
showFilterEditor: true
})]});