Fixed resizing issue when child menu is shorter than root menu