From a53c7e208b9c0ec6429b71ef63878da590783052 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 May 2020 20:13:51 +0300 Subject: =?UTF-8?q?fixes=20#2356=20(NewStory:=20=D0=B2=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B5=20=D0=BD=D0=B5=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B0=D1=8E=D1=82=D1=81=D1=8F=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F,=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=D1=88=D0=B5=D0=B4=D1=88=D0=B8=D0=B5/=D0=BE=D1=82=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B0=D1=82=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/NewStory/src') 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--) -- cgit v1.2.3