float clearIconWidth = 0.0f;
float clearIconHeight = 0.0f;
+ float cursorWidth = 0.0f;
_ControlOrientation orientation = __pEdit->GetOrientation();
GET_SHAPE_CONFIG(EDIT::CLEAR_ICON_WIDTH, orientation, clearIconWidth);
GET_SHAPE_CONFIG(EDIT::CLEAR_ICON_HEIGHT, orientation, clearIconHeight);
+ GET_SHAPE_CONFIG(EDIT::CURSOR_WIDTH, __pEdit->GetOrientation(), cursorWidth);
if (__pTextString->GetLength() == 0)
{
}
FloatRectangle textRect = __textObjectBounds;
- FloatRectangle afterClearIconRect(textRect.x + textRect.width, textRect.y + (textRect.height - clearIconHeight) / 2.0f, clearIconWidth, clearIconHeight);
+ FloatRectangle afterClearIconRect(textRect.x + textRect.width + cursorWidth, textRect.y + (textRect.height - clearIconHeight) / 2.0f, clearIconWidth, clearIconHeight);
FloatRectangle editBounds = __pEdit->GetBoundsF();
if (__clearIconBounds != afterClearIconRect)