The default behavior of the mobile menu is the following: when popup with root items is opened, its height is calculated depend on root items count and their height. After opening a sub-menu, where items count is different, the popup height is not updated. The suggestion is to add a functionality to popup menu to update its height every time after opening a next item.