summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/history_control.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 9887f00e01..f7797fc912 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -780,7 +780,7 @@ void NewstoryListData::Paint(simpledib::dib &dib)
SetBkMode(dib, TRANSPARENT);
// left offset of icons & text
- int xPos = 2, yPos = top + 2, xRight = 0;
+ int xPos = 2, yPos = top + 2, xRight = 0, yOffset = 0;
if (!bReadOnly) {
HICON hIcon;
@@ -845,6 +845,7 @@ void NewstoryListData::Paint(simpledib::dib &dib)
MoveToEx(dib, rc.left, rc.bottom - 4, 0);
LineTo(dib, rc.left + (rc.right - rc.left) * int(pItem->m_bOfflineDownloaded) / 100, rc.bottom - 4);
DeleteObject(SelectObject(dib, hpn));
+ yOffset = 4;
}
}
@@ -856,7 +857,7 @@ void NewstoryListData::Paint(simpledib::dib &dib)
}
// draw html itself
- litehtml::position clip(xPos, yPos, cachedWindowWidth - xPos - xRight, iItemHeigth);
+ litehtml::position clip(xPos, yPos, cachedWindowWidth - xPos - xRight, iItemHeigth - yOffset);
if (auto &pDoc = pItem->m_doc) {
if (auto pBody = pDoc->root()->select_one("body")) {
litehtml::background back = pBody->css().get_bg();