summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory/src')
-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--)