Ah, and given that you've implemented variable row height in table view, it all makes sense now :)
On Wed, Nov 18, 2009 at 7:36 AM, Noel Grandin <[email protected]> wrote: > > Label doesn't break lines when it hits a newline character, so the > natural usage of displaying multi-line text in a table doesn't work. > > -- Noel. > > Todd Volkert wrote: > > I'm not qualified to say, so I'll let Greg review it, but I'm curious as > to > > why you need a TextArea as a renderer (I'd think Label would suffice). > Keep > > in mind that renderers don't receive input, so you won't be able to > select > > the text that is rendered. > > > > -T > > > > On Wed, Nov 18, 2009 at 7:23 AM, Noel Grandin <[email protected]> > wrote: > > > > > >> Hi > >> > >> I can reasonably easily fix this (patch attached) and I don't seem to be > >> breaking anything else (tested with KitchenSink). > >> > >> Is this patch acceptable? > >> > >> Thanks, Noel. > >> > >> > >> Todd Volkert wrote: > >> > >> It has something to do with needing to know its break width so it knows > >> where to wrap and thus how tall it should be. Greg's the TextArea > expert, > >> so he can elaborate. > >> > >> On Wed, Nov 18, 2009 at 7:06 AM, Noel Grandin <[email protected]> < > [email protected]> wrote: > >> > >> > >> > >> Hi > >> > >> I note that TextAreaSkin returns [0,0] in getPreferredSize(). > >> > >> Is there a reason for this behaviour? > >> I was trying to use TextArea as a renderer for my variableRowHeight > >> TableView, but without a real preferredSize it doesn't work too well. > >> > >> Thanks, Noel. > >> > >> > >> > >> > >> > >> > > > > > >
