From 6361e7b25a5c47dce5fc7d7f87ae6bb11b8977ae Mon Sep 17 00:00:00 2001 From: Dmytro Dragan Date: Thu, 6 Oct 2016 11:32:44 +0300 Subject: [PATCH] TSAM-8412 Fixed scroll to last message on keyboard appearence Change-Id: Ifaed50192de7d757f919a163d6940205d7c1f419 Signed-off-by: Dmytro Dragan --- src/Conversation/ConvList/Controller/inc/ConvList.h | 3 +++ src/Conversation/ConvList/Controller/src/ConvList.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/Conversation/ConvList/Controller/inc/ConvList.h b/src/Conversation/ConvList/Controller/inc/ConvList.h index 0807b3a0..ef71a71b 100644 --- a/src/Conversation/ConvList/Controller/inc/ConvList.h +++ b/src/Conversation/ConvList/Controller/inc/ConvList.h @@ -164,6 +164,9 @@ namespace Msg virtual void onListItemLongPressed(ListItem &listItem); virtual void onListItemChecked(ListItem &listItem); + // List callback + void onListResized(Evas_Object *obj, void *eventInfo); + // IMsgStorageListener: virtual void onMsgStorageUpdate(const MsgIdList &msgIdList); virtual void onMsgStorageInsert(const MsgIdList &msgIdList); diff --git a/src/Conversation/ConvList/Controller/src/ConvList.cpp b/src/Conversation/ConvList/Controller/src/ConvList.cpp index 7e4d1c8b..8b14992a 100644 --- a/src/Conversation/ConvList/Controller/src/ConvList.cpp +++ b/src/Conversation/ConvList/Controller/src/ConvList.cpp @@ -109,6 +109,7 @@ Evas_Object *ConvList::createList(Evas_Object *parent) m_pList->setMode(ELM_LIST_COMPRESS); m_pList->setHomogeneous(false); m_pList->show(); + m_pList->addEventCb(EVAS_CALLBACK_RESIZE, EVAS_EVENT_CALLBACK(ConvList, onListResized), this); return *m_pList; } @@ -504,3 +505,7 @@ void ConvList::onLanguageChanged() m_pList->updateRealizedItems(); } +void ConvList::onListResized(Evas_Object *obj, void *eventInfo) +{ + navigateToBottom(); +} -- 2.34.1