[haiku-commits] Re: r36756 - haiku/trunk/src/kits/interface

  • From: "Ithamar R. Adema" <ithamar.adema@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 08 May 2010 21:47:37 +0100

Stephan Assmus wrote:
<snip>
If GetPreferredSize() looks at the content and reports different sizes, we are back to the broken behavior, which the above tried to fix. In another words, MinSize() and PreferredSize() need to return stable sizes, at least until InvalidateLayout() has been called. I don't believe you want to call InvalidateLayout() on each item operation in a BListView.
Oops, my apologies then, I misunderstood the comment. The problem is that the automatic sizing of the views/windows is horribly broken with the previous implementation....

Is there an easy way of reproducing the problem you describe here? Also, is there a workaround for apps using BListView's with the new layouting API?

HTH,

Ithamar.


Other related posts: