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