_EditPresenter::SetTextBounds(Rectangle& bounds)
{
__textObjectBounds = _CoordinateSystemUtils::ConvertToFloat(bounds);
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
+ {
+ __pTextObject->SetBounds(__textObjectBounds);
+ __pTextObject->Compose();
+ }
return E_SUCCESS;
}
_EditPresenter::SetTextBounds(FloatRectangle& bounds)
{
__textObjectBounds = bounds;
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
+ {
+ __pTextObject->SetBounds(__textObjectBounds);
+ __pTextObject->Compose();
+ }
return E_SUCCESS;
}
pToken->pTextObject->RemoveAll(true);
}
- __editContentFontSize = GetTextSize();
_EditPresenter::SetTextSize(tokenFontSize);
SetTextBounds(tempTextDspRect);
_TokenEditPresenter::SetTextSize(const int size)
{
result r = E_SUCCESS;
- if (__isEditingToken)
- {
- __editContentFontSize = size;
- }
- else
+ __editContentFontSize = size;
+
+ if (!__isEditingToken)
{
r = _EditPresenter::SetTextSize(size);
r = SetInitialBounds();
_TokenEditPresenter::SetTextSize(const float size)
{
result r = E_SUCCESS;
- if (__isEditingToken)
- {
- __editContentFontSize = size;
- }
- else
+ __editContentFontSize = size;
+
+ if (!__isEditingToken)
{
r = _EditPresenter::SetTextSize(size);
r = SetInitialBounds();