[haiku-bugs] Re: [Haiku] #4859: Sub-menus should keep the opening direction of their parents

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Tue, 16 Mar 2010 17:00:27 -0000

#4859: Sub-menus should keep the opening direction of their parents
--------------------------------+-------------------------------------------
 Reporter:  axeld               |       Owner:  axeld         
     Type:  enhancement         |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Kits/Interface Kit  |     Version:  R1/Development
 Keywords:                      |   Blockedby:                
 Platform:  All                 |    Blocking:                
--------------------------------+-------------------------------------------

Comment(by jackburton):

 Replying to [comment:6 bonefish]:

 > Generally I don't find it nice when objects play with their parents. I'd
 rather give a menu a preferred submenu opening direction attribute. A menu
 could then simply set that (to the actual direction) on a submenu it is
 about to open.

 Indeed playing with parents it's not nice. To tell the truth, though,
 BMenus play with parents, childs, and whatever they wants, already. It's
 not a reason to make the situation worse, though, and your solution seems
 to be nice.


 >
 > When coming close to a screen border that would mean that the arrows
 could point in different directions. As a solution the code could choose a
 common direction that would work for all submenus.

 The arrow, though, is drawn by BMenuItem, so the thing gets more complex.

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

Other related posts: