Change-Id: I9458c28a14f08170254e030c334b9c896290e439
}
}
- if (__pEdit->GetEditStyle() & EDIT_STYLE_CLEAR)
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_CLEAR && __pTextString->GetLength() > 0)
{
if ((__pressedPoint.x >= __clearIconBounds.x) && (__pressedPoint.x <= __clearIconBounds.x + __clearIconBounds.width)) // Clear Icon Pressed
{
ScrollText(-textGapFromBottom);
}
}
+ else
+ {
+ if (firstDisplayY > 0)
+ {
+ ScrollText(-firstDisplayY);
+ }
+ }
FloatRectangle absCursorBounds(0.0f, 0.0f, 0.0f, 0.0f);
CalculateAbsoluteCursorBounds(__cursorPos, absCursorBounds);