[haiku-bugs] Re: [Haiku] #7681: BListView ScrollToSelection Broken Under Layout Management

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Sat, 11 Jun 2011 20:53:33 -0000

#7681: BListView ScrollToSelection Broken Under Layout Management
----------------------------------+----------------------------
   Reporter:  leavengood          |      Owner:  anevilyak
       Type:  bug                 |     Status:  closed
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:  fixed               |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------
Changes (by anevilyak):

 * status:  in-progress => closed
 * resolution:   => fixed


Comment:

 Fixed in r42106. The problem is, AllAttached() is too early to be doing
 that kind of thing when in layout mode, since the layout isn't computed
 until the layout has been completely built (AllAttached() only signifies
 that all the children of the current view have been attached to the
 window). Thus ScrollToSelection() was computing a completely bogus
 coordinate based off the fact that the view was 0 size at that point.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7681#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: