0
나는 다음과 같은 코드에 의해 동적으로 구성 요소를 생성하고있어 때 데이터 그리드의 위치를 정렬하는 방법 : 난 그냥 vbox
내부 중앙에 데이터 그리드를 정렬하는 방법을 알고 싶어가 동적 구성 요소
var vbox:VBox = new VBox();
var btn:Button = new Button;
var hb:HBox = new HBox;
var dg:DataGrid = new DataGrid();
var dc:DataGridColumn = new DataGridColumn();
var columns:Array = new Array();
columns.push(getColumn("one", "ONE"));
columns.push(getColumn("two", "TWO"));
columns.push(getColumn("three", "THREE"));
columns.push(getColumn("four", "FOUR"));
columns.push(getColumn("five", "FIVE "));
dg.columns = columns;
dg.dataProvider = temp;
vbox.percentWidth = 100;
vbox.percentHeight = 100;
vbox.addChild(dg)
accordion.addChild(vbox);
. 내 응용 프로그램에서는 vbox의 모퉁이를 보여줍니다. 센터에서 DataGrid를 어떻게 정렬합니까?