MDL-42452 ActionMenu: Change constrains mechanism to show the entire menu
MDL-42452 actionmenu: improved constraint code