, __pTextEvent(null)
, __pSearchBarEvent(null)
, __pLanguageEvent(null)
+ , __isupdateContentBounds(false)
{
for (int i = 0; i < SEARCHBAR_BUTTON_COLOR_MAX; i++)
{
height = pParent->GetClientBoundsF().height;
}
- __contentAreaBounds = GetBoundsF();
+ FloatRectangle controlBounds = GetBoundsF();
__contentAreaBounds.x = 0.0f;
- __contentAreaBounds.y = __contentAreaBounds.height;
- __contentAreaBounds.width = width;
- __contentAreaBounds.height = height - __contentAreaBounds.height;
+ __contentAreaBounds.y = controlBounds.height;
+ __contentAreaBounds.width = width - controlBounds.x;
+ __contentAreaBounds.height = height - (controlBounds.y + controlBounds.height);
if (__pContainer)
{
{
if (__pSearchBarPresenter != null)
{
+ __isupdateContentBounds = true;
__pSearchBarPresenter->OnBoundsChanged();
}
return;
void
_SearchBar::OnChangeLayout(_ControlOrientation orientation)
{
- SetContentsArea();
+ __isupdateContentBounds = true;
return;
}
__pEdit->SetGuideTextColor(__guideTextColor[status]);
}
+ if (__isupdateContentBounds)
+ {
+ SetContentsArea();
+ __isupdateContentBounds = false;
+ }
__pSearchBarPresenter->Draw();
return;
}
}
__isKeypadOpening = false;
+ SetContentsArea();
return;
}