A mega menu can hold various numbers of columns (menu items) in one row. If the number of columns is more than ones set in Mega menu columns option, next columns will break to a new row.
Setting location: Appearance > Menus > Parent Menu item settings > Mega menu columns