[haiku-development] Re: Scrolling with child views - bug or feature?

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 17 Jul 2009 14:19:41 +0000

On Fri, Jul 17, 2009 at 2:12 PM, Stephan Assmus<superstippi@xxxxxx> wrote:
> Yes, but this is the correct behaviour. To get the true view port, you
> would have to do something like this:
>
> BRect visibleRect = Frame();
> visibleRect &= parent->Bounds();
> ConvertFromParent(&visibleRect);

Maybe we could add a helper function to BView for this then? It seems
like an operation that'd be used commonly enough and wouldn't need a
virtual slot. The rules make sense in the context of this explanation
in any event, thanks.

Regards,

Rene

Other related posts: