GET_SHAPE_CONFIG(SEARCHBAR::ICON_HEIGHT, orientation, iconHeight);
iconBounds.x = iconMarginH;
- iconBounds.y = (__pEdit->GetBoundsF().height - iconWidth) / 2.0f;
+ iconBounds.y = (__pEdit->GetBoundsF().height - iconHeight) / 2.0f;
iconBounds.width = iconWidth;
iconBounds.height = iconHeight;
float buttonLeftMargin = 0.0f;
float buttonWidth = 0.0f;
float searchFieldMinWidth = 0.0f;
+
_ControlOrientation orientation = _ControlManager::GetInstance()->GetOrientation();
GET_SHAPE_CONFIG(SEARCHBAR::HORIZONTAL_MARGIN, orientation, horizontalMargin);
GET_SHAPE_CONFIG(SEARCHBAR::BUTTON_RIGHT_MARGIN, orientation, buttonRightMargin);
GET_SHAPE_CONFIG(SEARCHBAR::SEARCH_FIELD_MIN_WIDTH, orientation, searchFieldMinWidth);
GET_SHAPE_CONFIG(SEARCHBAR::BUTTON_WIDTH, orientation, buttonWidth);
+
float buttonResizableSearchBarWidth = (horizontalMargin + searchFieldMinWidth +
buttonWidth + buttonLeftMargin + buttonRightMargin);
}
__pSearchBar->SetContentsArea();
+ __pSearchBar->Invalidate(true);
return;
}