__lastHighlightedItemIndex = -1;
__highlighted = false;
- if (__style == TOOLBAR_TITLE || __style == TOOLBAR_HEADER_SEGMENTED_WITH_TITLE || __style == TOOLBAR_TAB_WITH_TITLE)
- {
- if (__pTitleTextElement)
- {
- __pTitleTextElement->SetLabel(L"");
- }
- }
- else
+ if (__pTitleTextElement)
{
- if (__pTitleTextElement)
- {
- GetAccessibilityContainer()->RemoveElement(*__pTitleTextElement);
- __pTitleTextElement = null;
- }
+ GetAccessibilityContainer()->RemoveElement(*__pTitleTextElement);
+ __pTitleTextElement = null;
}
if (__itemCount == 0 && __pButtonItems[LEFT_BUTTON] == null && __pButtonItems[RIGHT_BUTTON] == null)
{
GET_SHAPE_CONFIG(HEADER::TITLE_HEIGHT_WITH_SEGMENTED_ITEM, GetOrientation(), vmargin);
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_HEIGHT, GetOrientation(), headerButtonItemHeight);
+ __titleTextArea.height = vmargin;
}
else if (__style == TOOLBAR_TAB_WITH_TITLE)
{
GET_SHAPE_CONFIG(HEADER::BUTTON_ITEM_TOP_MARGIN, GetOrientation(), vmargin);
GET_SHAPE_CONFIG(HEADER::TITLE_HEIGHT_WITH_SEGMENTED_ITEM, GetOrientation(), headerButtonItemHeight);
+ __titleTextArea.height = headerButtonItemHeight;
}
else
{