I tried that method, still problems there, when user will change his viewport size in between save and restore stages. I think DataGrid has serious resizing problems, in certain condition it even doesn't allow me to change column width. I think what is lacking is percentWidth, it will be extremely simple to set with of column in percents, and processing of scaling will be same easy. In same time width property of column will give you actual width.
--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Another option is to add the DGs in the other panels after > creationComplete on the TabNav so you know what sizes to use. > > > > As far as scaling goes, you might want to save off the columns somewhere > and restore them later. > > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of lytvynyuk > Sent: Thursday, January 03, 2008 2:16 PM > To: [email protected] > Subject: [flexcomponents] Re: Generated DataGrid column sizes problem... > > > > > What's happening is that the second and third panels don't get sized > > right away and they size the DG to something small which squishes the > > columns. Try setting a minWidth on the DG to as large a number as > > possible. > > Thank you Alex for response. I does looks like second and third was > newer set to requested width. What I see any DG component,which not > displayed, ignores 'width' and set columns to (100/by number of > columns)%. You suggestion actually works, but only if I can set > minWidth good enough, some times it is not possible. > > Case 2 is more even funnier. I kinda understand what is going on, DG > forget about column width when its own width became 0. Is it possible > to call DG initialisation method again to bring initial properties > back, or may be create a method which applies properties back after > scaling done. >
