My sincere apologies for disappearing for an extended period. Too many
projects going on...
 
I have not used hard numbers, because I need the whole thing to resize
properly and I don't want to have to get into "knowing" about the grid
cell spacings. Hence I've been using percentage widths.
 
I've seen a couple of funky things going on, although I am now closer to
a solution than I was when I first posted here.
 
One of the root problems, I think, is that *I* know how many columns my
grid is supposed to have, but there doesn't appear to be any way to tell
the grid that. What I mean is that I want, for example, a 3 column
layout, but the grid itself only knows about cells of particular widths
and colSpans. I've had problems with thirds of the width not turning out
to be thirds after all, and the existing column widths resizing when I
add new cells on new rows. However, I seem to be _mostly_ past that now.
 
The remaining issue I'm seeing is also very strange. I added a
capability to collapse and expand the cells in my grid using view
states, with only a SetProperty to change the height. But when the cell
is collapsing or expanding, all of the cells in that row move over to
the left by some amount (roughly the same width as a scrollbar, I would
guess), then the collapse / expand happens, and then the cells shift
back. What's that all about??
 
Thanks!
 
--
Martin Cooper
 


________________________________

        From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
        Sent: Saturday, April 14, 2007 12:49 AM
        To: [email protected]
        Subject: RE: [flexcoders] Grid columns of fixed and equal width
        
        

        

        What happened when you gave each column the same fixed width?

        

        
________________________________


        From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
        Sent: Friday, April 13, 2007 9:30 AM
        To: [email protected]
        Subject: RE: [flexcoders] Grid columns of fixed and equal width

        

        Pretty please? Even a response telling me that it's a bonehead
question and I'm a dolt for asking would tell me _something_. ;-)

        

        Thanks!

        

        --

        Martin Cooper

        

                

                
________________________________


                From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
                Sent: Tuesday, April 10, 2007 11:41 AM
                To: [email protected]
                Subject: [flexcoders] Grid columns of fixed and equal
width

                What is the "right" way to create a Grid that has a
fixed number of
                columns of equal width?
                
                What I need is a fixed 3-column layout to which I can
dynamically add
                cells. Regardless of the content of the cells, the
column widths should
                remain the same. Also, the columns would need to resize
when the Grid is
                resized. I'm basing this on the Grid layout because I
also need the
                column spanning capability that Grid gives me.
                
                Any hints would be a great help in getting me going.
                
                For extra bonus points ... what I *really* want is
something more like
                three VBoxes of equal width, so that the contents are
not forced to
                align vertically, as with a Grid, but where I also get
the column
                spanning that a Grid gives me. (This is more like
newspaper layout,
                except that I don't care about content flowing from one
column to the
                next.) However working with a Grid will get me going for
now.
                
                Thanks very much!
                
                --
                Martin Cooper

        

        

         

Reply via email to