728x90
반응형
넥사크로 N
리스트뷰
스크롤바 안생기는
높이 계산 방법
this.resetListHeight = function(obj){
var height = 0;
var bodyHeight = ~~obj.getBandProperty("body", "height");
var detailHeight = ~~obj.getBandProperty("detail", "height");
var cnt = obj.getBindDataset().rowcount;
for(var i = 0; i < cnt; i++){
height += bodyHeight;
if(obj.getBandExpandStatus(i)){
height += detailHeight;
}
trace(i, obj.getBandExpandStatus(i), height);
}
obj.set_height(height);
return height
}
728x90
반응형