Change-Id: I6a9cd85763f57f9ea4df5b8df8f6b0b7302f60ef
Signed-off-by: Kunal Sinha <kunal.sinha@samsung.com>
float tempTextRectWidth = 0.0f;
tempTextRectWidth = tokenEditBounds.width - pToken->displayRect.x - pToken->displayRect.width - tokenHorizontalSpacing - rightMargin - __pTokenEdit->GetHorizontalMarginF(EDIT_TEXT_RIGHT_MARGIN);
- if (tokenMinWidth > tempTextRectWidth && IsFocused()) // Line change
+ if (tokenMinWidth > tempTextRectWidth && __pTokenEdit->IsFocusable() && __pTokenEdit->IsEnabled()) // Line change
{
tokenTextRect.x = leftMargin + __pTokenEdit->GetHorizontalMarginF(EDIT_TEXT_LEFT_MARGIN);
tokenTextRect.y = pToken->displayRect.y + tokenHeight + tokenVerticalSpacing + __lineSpacing + textBoundsAlignValue;