Flash 单元渲染器单单元高度

Flash 单元渲染器单单元高度,flash,actionscript-3,datagrid,cellrenderer,Flash,Actionscript 3,Datagrid,Cellrenderer,如何更改单个单元格的高度 override protected function drawLayout():void { textField.width = this.width; height = 64; textField.height = height; textField.setTextFormat(tf); super.drawLayout(); } 如何让dataGrad调整整行的大小?我使用的高度是64。但是它是动态的。您的数据网格上是否

如何更改单个单元格的高度

override protected function drawLayout():void {
    textField.width = this.width;
    height = 64;

    textField.height = height;
    textField.setTextFormat(tf);
    super.drawLayout();
}

如何让dataGrad调整整行的大小?我使用的高度是64。但是它是动态的。

您的数据网格上是否设置了
variableRowHeight=true
属性?
variableRowHeight
在AS3中不可用,即使您使用
setStyle
功能也不可用<代码>myDataGrid.setStyle(“variableRowHeight”,true)