fix: Add check for tall messages (#5045)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user