[haiku-development] Re: BListView/BOutlineListView patch

On Tue, Feb 19, 2008 at 3:27 AM, Alexandre Deckner <alex@xxxxxxxxxxxx> wrote:
>  >
>  Hi,
>  i didn't test your patch yet, nor looked at the BListView code, but
>  while you are at it, wouldn't it be nice to have the width adapt to the
>  content and font size?

Related to this:

I notice BListView has an fWidth member. This is set to the current
width of the view in a few different places (i.e. FrameResized(), but
as far as I can tell is never actually used for anything. Am I missing
something or is this an artifact of some code redesign that was never
cleaned up? If it's not needed, I could use it to store the widest
item in the list for GetPreferredSize(). Anyone know?

Regards,

Rene

Other related posts: