summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-18 13:33:37 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-18 13:33:37 +0300
commit37bdacf42b9d3942215bbd72f8ce32377e2f2d71 (patch)
tree9a60c879416603b95fda450a8ab33b69b2326c69 /plugins/NewStory/src
parenta5703ab06feee2419a6fd28d30de6c1671e31792 (diff)
fixes #3744 (NewStory: после последнего сообщения возникает пустота)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/history_control.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index fdf43124b0..2bc48a8adc 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -750,9 +750,9 @@ void NewstoryListData::ScrollDown(int deltaY)
}
if (!bFound)
scrollTopItem = scrollTopPixel = 0;
- FixScrollPosition();
}
+ FixScrollPosition();
InvalidateRect(m_hwnd, 0, FALSE);
}
@@ -786,10 +786,9 @@ void NewstoryListData::ScrollUp(int deltaY)
if (!bFound)
scrollTopItem = scrollTopPixel = 0;
-
- FixScrollPosition();
}
+ FixScrollPosition();
InvalidateRect(m_hwnd, 0, FALSE);
}