mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix bbox calculation
This commit is contained in:
parent
038a7fcd55
commit
6cf3f9e1c2
|
@ -126,7 +126,7 @@ void ChatLine::updateBBox()
|
|||
bbox.setWidth(width);
|
||||
|
||||
for(ChatLineContent* c : content)
|
||||
bbox.setHeight(qMax(c->sceneBoundingRect().height(), bbox.height()));
|
||||
bbox.setHeight(qMax(c->sceneBoundingRect().top() - bbox.top() + c->sceneBoundingRect().height(), bbox.height()));
|
||||
}
|
||||
|
||||
QRectF ChatLine::sceneBoundingRect() const
|
||||
|
|
Loading…
Reference in New Issue
Block a user