[haiku-bugs] Re: [Haiku] #7902: BSplitView - ItemWeight

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 15 Nov 2011 20:30:40 -0000

#7902: BSplitView - ItemWeight
----------------------------------+-----------------------
   Reporter:  cipri               |      Owner:  yourpalal
       Type:  bug                 |     Status:  assigned
   Priority:  normal              |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/alpha3
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+-----------------------
Changes (by bonefish):

 * owner:  axeld => yourpalal
 * status:  new => assigned


Comment:

 From the haiku-3rdparty-dev list (from cipri):
   On Tue, 15 Nov 2011 19:11:47 +0000 Ingo Weinhold
   <ingo_weinhold@xxxxxx> wrote:
   >I believe collapsing an item can be
   >simply done by setting it to invisible (i.e. call Hide() on the
   >view). If that doesn't work, please file a bug report.

   Yes it works, it collapses the splitter, but the problem is, you
   can not "open" again the splitter usig the mouse.
   Whe you collapse a splitter using the mouse then the weight is
   zero. That means, it would be a great help,
   if setting the weight to zero would collapse the splitter too.
   Before the user closes the application the weights in my
   application  are saved
   and restored at the next program start. In the case of a collapsed
   splitter the weight is saved as zero, but when restoring again
   the splitter is not collapsed anymore.

 I don't think setting the item weight to 0 should collapse the item, as it
 is meant to do something else -- make the item as small as its minimum
 size allows -- at least IIRC and it would be consistent with how weights
 work in other layouts.

 I'm not sure why a view can't be expanded with the mouse after hiding it.
 That does indeed seem to be a bug. Or maybe it is actually not supposed to
 be done like this (I don't recall). Then a dedicated interface is needed
 -- `BSplitView::SetCollapsed()`. I would be nice to have that anyway as it
 would be clearer for the API user.

 Assigning to Alex. Maybe he's motivated to look into it.

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

Other related posts: