On the other hand, this would have to be a skin pass-through method, since the skin (especially the TableViewHeader skin) may want to apply some additional padding or spacing around the renderer. So we'd need to add these methods to TableView.Skin and TableViewHeader.Skin.

On Aug 26, 2009, at 4:31 PM, Greg Brown wrote:

Good point. We could have two.

On Aug 26, 2009, at 4:31 PM, Todd Volkert wrote:

Then again, what if you're using a table view with no header? Should such a
method exist in TableView and TableViewHeader, where the latter adds
knowledge of the column header?

On Wed, Aug 26, 2009 at 4:29 PM, Todd Volkert <[email protected]> wrote:

Yeah I'd vote getPreferredColumnWidth(columnIndex:int):int


On Wed, Aug 26, 2009 at 4:26 PM, Greg Brown <[email protected]> wrote:

Or maybe:

getPreferredColumnWidth(columnIndex:int):int



On Aug 26, 2009, at 4:24 PM, Greg Brown wrote:

So it would just be a utility method, such as sizeColumnToFit(int):void?

On Aug 26, 2009, at 4:23 PM, Todd Volkert wrote:

Yeah, including asking the column header's renderer.

On Wed, Aug 26, 2009 at 4:20 PM, Greg Brown <[email protected]> wrote:

What about adding API to TableViewHeader?



You mean, to do this?


You could pretty easily write a method that

will, using the column's cell renderer, determine the max. cell width
and
explicitly set the column width to that value.










Reply via email to