Strange behaviour of CCMenu::alignItemsVerticallyWithPadding()

I observed, that menu items after use of this function is shifted up comparing to the coordinates, that I set to the menu object.

In my case, there is a label and right after it is a menu. Menu should be displayed under the label, but after aligning the items, they overlaped with my label. I checked the sources of the function and there is the cause of this:

CCMenu.cpp
line 273: float y = height / 2.0f;

What is the reason of this shift?

When I changed the ‘y’ value to zero, my problem was solved. But, I am not sure, is it right.