【发布时间】:2011-05-03 23:27:38
【问题描述】:
我正在尝试在 Spark TitleWindow 中添加一个 DataGrid,但由于某种原因它没有正确显示。
当我将相同的代码放入主 mxml 时,它会正确显示。完全相同的代码在 TitleWindow 中显示得很奇怪。
<mx:DataGrid x="10" y="51" width="535" height="215" id="musicianGrid">
<mx:columns>
<mx:DataGridColumn headerText="First Name" dataField="firstName" width="90"/>
<mx:DataGridColumn headerText="Last Name" dataField="lastName" width="90"/>
<mx:DataGridColumn headerText="Band/Group" dataField="bandName" />
<mx:DataGridColumn headerText="Record Label" dataField="recordLabel" width="135"/>
</mx:columns>
</mx:DataGrid>
在标题窗口中它看起来像这样 -
在主 mxml 中它看起来像这样 -
代码没有变化...
你能告诉我发生了什么事吗?
【问题讨论】:
标签: apache-flex actionscript-3 datagrid flex4