A drop-in check box renderer will not center in a datagrid column.  That
site explains how to fix it, without using a container.  I have never seen
one align center, regardless of column setting, unless you wrap it in a
container.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of aceoohay
Sent: Thursday, March 12, 2009 4:39 PM
To: [email protected]
Subject: [flexcoders] Re: Checkbox Itemrenderer centering mystery...

 

That's a good resource but it doesn't answer my question.

Anybody have any ideas as to what will cause an item renderer to NOT honor
the textAlign of the dataGridColumn?

Somtimes textAlign works sometimes it doesn't What causes that?

Paul

--- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"Tim Hoff" <timh...@...> wrote:
>
> 
> All of your answers can be found here:
> 
> http://blogs. <http://blogs.adobe.com/aharui/item_renderers/>
adobe.com/aharui/item_renderers/
> <http://blogs. <http://blogs.adobe.com/aharui/item_renderers/>
adobe.com/aharui/item_renderers/>
> 
> -TH
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
"aceoohay" <pauls@> wrote:
> >
> > I have an itemrenderer that is a checkbox. I define textAlign="center"
> in the datagriColumn. It doesn't center.
> >
> > I decided to ask folks here so I created a simple test case to post,
> and unfortunately it works fine.
> >
> > I tried adding some of the things that I do in the real module, and I
> can't get the test case to fail. The module that has the problem
> requires a lot of other code so I can't post it as a test case.
> >
> > I have been told that I shouldn't use HBoxes and the like, as it adds
> "weight" to the module.
> >
> > Anybody have any ideas as to what will cause an item renderer to NOT
> honor the textAlign of the dataGridColumn?
> >
> > Paul
> >
>



Reply via email to