fix: Add check for tall messages (#5045)

This commit is contained in:
nerix
2023-12-27 16:50:04 +01:00
committed by GitHub
parent 9612eac966
commit d0d240136e
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@
- Dev: BREAKING: Replace custom `import()` with normal Lua `require()`. (#5014)
- Dev: Fixed most compiler warnings. (#5028)
- Dev: Added the ability to show `ChannelView`s without a `Split`. (#4747)
- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043)
- Dev: Channels without any animated elements on screen will skip updates from the GIF timer. (#5042, #5043, #5045)
## 2.4.6
+3 -1
View File
@@ -1501,7 +1501,9 @@ void ChannelView::drawMessages(QPainter &painter, const QRect &area)
ctx.isLastReadMessage = false;
}
if (areaContainsY(ctx.y) || areaContainsY(ctx.y + layout->getHeight()))
if (areaContainsY(ctx.y) ||
areaContainsY(ctx.y + layout->getHeight()) ||
(ctx.y < area.y() && layout->getHeight() > area.height()))
{
auto paintResult = layout->paint(ctx);
if (paintResult.hasAnimatedElements)