From 8e17c8b03821a89f06e74e8ced95ea1e16d23b03 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Nov 2024 18:09:55 +0300 Subject: =?UTF-8?q?fixes=20#4788=20(NewStory:=20=D0=9F=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20=D0=B7=D0=B0=D0=BA?= =?UTF-8?q?=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BB=D0=B0=D1=81=D1=82=D1=8C=D1=8E=20=D1=81=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D1=82=D0=BE=D0=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NewStory/src/history_control.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') 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(); -- cgit v1.2.3