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

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?