mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chatline: fixed bbox height calculation
This commit is contained in:
parent
5ae506fe3b
commit
b6fd9ed02e
|
@ -98,7 +98,7 @@ void ChatLine::updateBBox()
|
|||
bbox.setWidth(width);
|
||||
|
||||
for(ChatLineContent* c : content)
|
||||
bbox.setHeight(qMax(c->sceneBoundingRect().height(), bbox.height()));
|
||||
bbox.setHeight(qMax(c->sceneBoundingRect().bottom() - pos.y(), bbox.height()));
|
||||
}
|
||||
|
||||
QRectF ChatLine::boundingSceneRect() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user