summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-20 20:38:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-20 20:38:35 +0300
commit33aa78b58cd86f9b8e38032ff157ff614c23d73c (patch)
tree026466d6a6f1fa45f010498e9aeba58e3897f670 /plugins/NewStory/src/history_array.cpp
parent2e98fcfccb79d443911f56c2b5210b5361c65d5c (diff)
various drawing quirks
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index a22708743e..e9cc5989fa 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -214,14 +214,16 @@ int ItemData::calcHeight(int top, int width, POINT *pPos)
if (m_bOfflineDownloaded != 0) // Download completed icon
sz.cx -= 18;
+ leftOffset = pos.x;
if (savedHeight == -1) {
m_doc->render(sz.cx);
- savedHeight = m_doc->height();
+ savedHeight = m_doc->height() + 5;
+ Netlib_Logf(0, "Event %d rendered to %d with width %d", dbe.getEvent(), savedHeight, sz.cx);
}
if (pPos)
*pPos = pos;
- return savedHeight + 5;
+ return savedHeight;
}
void ItemData::checkCreate()
@@ -457,8 +459,6 @@ void ItemData::load(bool bLoadAlways)
void ItemData::setText()
{
m_doc = litehtml::document::createFromString(formatHtml(), &pOwner->webPage);
- m_doc->render(pOwner->cachedWindowWidth);
- savedHeight = m_doc->height();
}
// Array