summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-03 20:13:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-03 20:13:51 +0300
commita53c7e208b9c0ec6429b71ef63878da590783052 (patch)
tree81a59bb6f33b6e1cf86ab865d07b661022ab7abf
parentafb6e1b6fda0c0df05adadbd298e6ad5cdeb5f9c (diff)
fixes #2356 (NewStory: в логе не отображаются сообщения, пришедшие/отправленные после открытия привата)
-rw-r--r--plugins/NewStory/src/history_control.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index e8b3dae293..5ae150bb97 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -47,7 +47,6 @@ struct NewstoryListData : public MZeroedObject
{
pTimer->Stop();
- RecalcScrollBar();
scrollTopItem = items.getCount();
FixScrollPosition();
InvalidateRect(hwnd, 0, FALSE);
@@ -182,7 +181,7 @@ struct NewstoryListData : public MZeroedObject
GetWindowRect(hwnd, &rc);
int windowHeight = rc.bottom - rc.top;
- if (windowHeight != cachedWindowHeight) {
+ if (windowHeight != cachedWindowHeight || cachedMaxTopItem != scrollTopItem) {
int maxTopItem = 0;
int tmp = 0;
for (maxTopItem = items.getCount(); (maxTopItem > 0) && (tmp < windowHeight); maxTopItem--)