setting it to VerticalAlignment::Center cuts the top and bottom of the text.
The VerticalAlignment::CENTER setting works when the size of the control is enough.
Change-Id: I3d35b4dfceb4297c89bddfc5c5364de4be5bc646
case VerticalAlignment::CENTER:
{
penY = static_cast<int>( 0.5f * ( size.height - layoutSize.height ) );
case VerticalAlignment::CENTER:
{
penY = static_cast<int>( 0.5f * ( size.height - layoutSize.height ) );
+ penY = penY < 0.f ? 0.f : penY;
break;
}
case VerticalAlignment::BOTTOM:
break;
}
case VerticalAlignment::BOTTOM: