Ah, sim. É q eu confundi a tag DataGridColumn com DataGrid. Então
talvez o problema seja porque o width do datagridcolumn é menor do que
o width da imagem.

<mx:DataGridColumn textAlign="center" headerText="Baixar" width="15"

<mx:Image
source="@Embed(source='../assets/
Download.png')" width="16"


On 10 dez, 11:09, Lorenzi <mlorenz...@gmail.com> wrote:
> Sim mas é isto que estou fazendo:
>
> <mx:DataGridColumn textAlign="center" headerText="Baixar" width="15"
> editable="false">
>                         <mx:itemRenderer>
>                                 <mx:Component>
>                                         <mx:HBox
> verticalAlign="middle"
> horizontalAlign="center">
>                                                 <mx:Image
> source="@Embed(source='../assets/
> Download.png')" width="16" height="16"  buttonMode="true"
> click="parentDocument.acessaNfe(data)"/>
>                                         </mx:HBox>
>                                 </mx:Component>
>                         </mx:itemRenderer>
>                 </mx:DataGridColumn>
>
> On Dec 10, 11:04 am, Ednei <ednei.tana...@gmail.com> wrote:
>
> > Tente colocar o <mx:itemRenderer> dentro de uma <mx:datagridColumn> e
> > entao dentro do datagridcolumn vc coloca o textAling="center".
>
> > On 10 dez, 09:13, Lorenzi <mlorenz...@gmail.com> wrote:
>
> > > Pessoal tenho um dataGrid e dentro dele uma imagem so que nao consigo
> > > centralizar ele na coluna:
>
> > > <mx:DataGridColumn textAlign="center" headerText="Baixar" width="15"
> > > editable="false">
> > >                         <mx:itemRenderer>
> > >                                 <mx:Component>
> > >                                         <mx:HBox verticalAlign="middle"
> > > horizontalAlign="center">
> > >                                                 <mx:Image 
> > > source="@Embed(source='../assets/
> > > Download.png')" width="16" height="16"  buttonMode="true"
> > > click="parentDocument.acessaNfe(data)"/>
> > >                                         </mx:HBox>
> > >                                 </mx:Component>
> > >                         </mx:itemRenderer>
> > >                 </mx:DataGridColumn>
>
> > > Deste tipo so que nao centraliza na coluna.
>
> > > Grato.

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a