Fix iOS screen keyboard misplaced in the beginning
This commit is contained in:
parent
da589263b8
commit
31c1003912
@ -383,6 +383,8 @@ bool CGUIEditBox::OnEvent(const SEvent& event)
|
||||
}
|
||||
else if (event.GUIEvent.EventType == EGET_ELEMENT_FOCUSED)
|
||||
{
|
||||
// Required for correct screen keyboard position in the beginning
|
||||
FrameRect = AbsoluteRect;
|
||||
m_mark_begin = m_mark_end = m_cursor_pos = getTextCount();
|
||||
#ifdef ANDROID
|
||||
calculateScrollPos();
|
||||
|
Loading…
Reference in New Issue
Block a user