From 49c1cd8e49395fdd10050c176df63a4c548deb87 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 Aug 2023 12:39:42 +0300 Subject: =?UTF-8?q?fixes=20#3631=20(NewStory:=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BB=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D0=BF=D1=80=D0=BE=D0=BA=D1=80=D1=83=D1=82?= =?UTF-8?q?=D0=BA=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 21ba39b3c4..342ba3d856 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -73,8 +73,6 @@ void NewstoryListData::OnTimer(CTimer *pTimer) { pTimer->Stop(); - scrollTopItem = totalCount; - FixScrollPosition(); InvalidateRect(hwnd, 0, FALSE); } @@ -89,7 +87,7 @@ void NewstoryListData::AddSelection(int iFirst, int iLast) if (auto *p = GetItem(i)) p->m_bSelected = true; - ScheduleDraw(); + ScrollBottom(); } void NewstoryListData::BeginEditItem(int index, bool bReadOnly) @@ -623,14 +621,14 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM data->totalCount = data->items.getCount(); } data->hasData = true; - data->ScheduleDraw(); + data->ScrollBottom(); break; case NSM_ADDCHATEVENT: data->items.addChatEvent((SESSION_INFO *)wParam, (LOGINFO *)lParam); data->totalCount++; data->hasData = true; - data->ScheduleDraw(); + data->ScrollBottom(); break; case NSM_ADDRESULTS: @@ -638,7 +636,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM data->items.addResults(pResults); data->totalCount = data->items.getCount(); data->hasData = true; - data->ScheduleDraw(); + data->ScrollBottom(); } break; -- cgit v1.2.3