Spark datagrid item renderer - adjust height
i using textinput item renderer datagrid:
<s:gridcolumn datafield="comment" headertext="comment"
itemrenderer="datagridrenderer">
</s:gridcolumn>
// renderer
<?xml version="1.0" encoding="utf-8"?>
<s:griditemrenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:grideditorclasses="spark.components.grideditorclasses.*"
xmlns:ns="library://commons.stoneriver.com"
>
<fx:script>
<![cdata[
override public function prepare(hasbeenrecycled:boolean):void
{
super.prepare(hasbeenrecycled);
if (data)
{
if(data.formcode == "")
{
comment.text = data[column.datafield];
comment.setstyle("backgroundcolor", 0xffffff);
}
else
{
comment.text = "";
comment.setstyle("backgroundcolor", 0xb1ccf0);
}
}
}
]]>
</fx:script>
<!--- renderer's visual component. -->
<s:textinput id="comment" width="100%" bordervisible="false" fontsize="{column.grid.datagrid.getstyle('fontsize')}"/>
</s:griditemrenderer>
how can adjust height of renderer fill whole cell? right comes out smaller height row height.
thanks
hello.
is 'height = "100%"' not working?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment