diff options
author | George Hazan <george.hazan@gmail.com> | 2024-11-21 18:09:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-11-21 18:09:55 +0300 |
commit | 8e17c8b03821a89f06e74e8ced95ea1e16d23b03 (patch) | |
tree | 4ada6312f68c68f724bf4d053b850b5f03d07cd1 | |
parent | f3b3e4ccf25f1a6345cb07db6ebdbe2658ba7b27 (diff) |
fixes #4788 (NewStory: Полоска загрузки файла закрывается областью с текстом)
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 5 |
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();
|