Lulz thanks for the that!  I must be tired ... but i  got this to work, 
correctly,  I have multiple rows that can be longer than others, so this was my 
error...  By the way, is there an event I can subscribe to that will tell me 
when everything is rendered, or do i have to rely on my trusty timeout?

Thanks For your help.

Patrick





--- In flexcoders@yahoogroups.com, "valdhor" <valdhorli...@...> wrote:
>
> I hate to be picky but my math makes it 52.
> 
> Anyway, did you count things like padding, vertical gap etc?
> 
> 
> --- In flexcoders@yahoogroups.com, "djhatrick" <djhatrick@> wrote:
> >
> > Tom:
> > 
> > Thanks for that, but unfortunately that method is inaccurate( Maybe it 
> > doesn't work for very good for factories... Here's how i am getting my 
> > height, i am setting a height on my value object after i add my labels in a 
> > vertical column, then i listen for an event on my collection dataProvider, 
> > the last item, which I then loop through and calculate the values?  
> > 
> > See my examples:
> > 
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height--------> 560
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height--------> 560
> > 
> > 
> > It's off by 72 pixels... that's quite a difference.
> > 
> > Patrick
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" <TimHoff@> wrote:
> > >
> > > 
> > > Hi Patrick,
> > > 
> > > private function resizeDataGrid():void
> > > {
> > >       myDataGrid.height = myDataGrid.measureHeightOfItems(0,
> > > myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2;
> > > }
> > > 
> > > <mx:DataGrid id="myDataGrid" valueCommit="resizeDataGrid()">
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, "djhatrick" <djhatrick@> wrote:
> > > >
> > > > My datagrid won't measure correctly, i have variable row height, but
> > > it can't seem to get it right, I don't want any scroll bars..., is there
> > > an easy way to override some function so i can get the actual rowheight
> > > of each row and determine my height correctly
> > > >
> > > > Thanks,Patrick
> > > >
> > > >
> > > > Wow, i had to rejoing Flexcoders.... Google Groups are better than
> > > yahoogroups, sorry yahoogroups,
> > > >
> > >
> >
>


Reply via email to