【发布时间】:2010-11-16 11:07:06
【问题描述】:
我有一个DataGrid 和一个插入式Button itemRenderer:
<mx:DataGridColumn headerText="" width="135"
itemRenderer="ActionButtonItemRenderer" />
但是,该按钮一直延伸到DataGridColumn 的左右边缘。我试过弄乱width 和DataGridColumn 和itemRenderer 的width 属性和paddingLeft 和paddingRight 样式,但似乎没有任何效果。
注意:我不想将 Container 或 UIComponent 与作为 itemRenderer 的子按钮一起使用 - 代码太多。
有没有简单的方法来添加左右内边距?
【问题讨论】:
-
为什么说使用 Container 或 UIComponent 代码太多?你是从可读性的角度说的吗?
标签: apache-flex actionscript-3 coding-style padding itemrenderer