[haiku-bugs] [Haiku] #15782: Implement relayouting of submenus if menu is changed

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 05 Mar 2020 13:02:04 -0000

#15782: Implement relayouting of submenus if menu is changed
--------------------------------+------------------------------
 Reporter:  X512                |        Owner:  nobody
     Type:  enhancement         |       Status:  new
 Priority:  normal              |    Milestone:  Unscheduled
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 This hrev53937.

 When menu is changed by inserting or removing items and submenu is open,
 menu size can change become inconsistent with submenu position. We may
 need to recursively relayout submenus when menu size is changed or menu is
 scrolled. Note that submenus relayouting is not trivial, just reposition
 can cause submenus going outside of screen. Screen height submenus with
 scrollers should be not moved vertically. When changed menu width
 increase, submenus may go out of screen horizontally and need to change
 open direction.

 As I understand, other OS do not implement this feature and I am not sure
 that it is required as it can be annoying. This feature need no be
 discussed.

 Situation in Windows: https://stackoverflow.com/questions/13224099/how-to-
 update-context-menu-already-displayed-with-trackpopupmenu-in-c/13224228.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15782>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: