Cursor position issue occurs when the text control is editable.
isEditable flag prevents wrong resizing in TextLabel.
Change-Id: I15eb8ec37bead595caaf600f9a1f7163c3c98bcd
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
layoutSize.height = defaultFontLineHeight;
}
- if (layoutSize.height != defaultFontLineHeight)
+ // Whether the text control is editable
+ const bool isEditable = NULL != impl.mEventData;
+ if (isEditable && layoutSize.height != defaultFontLineHeight)
{
// This code prevents the wrong positioning of cursor when the layout size is bigger/smaller than defaultFontLineHeight.
// This situation occurs when the size of placeholder text is different from the default text.