[haiku-commits] Re: haiku: hrev45852 - in src: apps/deskcalc kits/shared

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 13 Jul 2013 21:47:18 +0200

On 07/13/2013 09:13 PM, John Scipione wrote:
If I keep the B_FULL_UPDATE_ON_RESIZE flag but don't Invalidate() in
FrameResized() it redraws the view before FrameResized() gets called
so the view gets drawn on resize, but incorrectly.

Hm, not sure if that replicates BeOS behavior - can you test that? It sounds like it would make more sense to call FrameResized() before Draw() if the size changed in any case.

If it is indeed BeOS behavior, and we have to stay compatible, you could simply check whether the size changed in Draw() instead.

Bye,
   Axel.


Other related posts: