#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
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Description changed by X512:
Old description:
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.