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

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 17 Jul 2009 09:34:39 +0200

On 2009-07-17 at 02:23:42 [+0200], Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> Hi,
> 
> In the debugger, the view displays the source code is a view contained in 
> a BScrollView that then has two children which completely cover it. If 
> said view is scrolled, the view that's directly contained in the 
> scrollview (SourceView) has a correctedly shifted bounds rectangle (as 
> given by BView::Bounds()). However, its children always return their 
> entire bounds rect, meaning the children cannot detect that they're 
> scrolled without asking for the parent's rect. Is this intentional, or a 
> bug?

Maybe I am missing something, but from your explaination, I would say it's 
intentional. Why would scrolling the parent view affect something local to 
the child views?

Best regards,
-Stepphan

Other related posts: