1
0
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:
krepa098 2015-02-04 15:36:26 +01:00
parent 038a7fcd55
commit 6cf3f9e1c2

View File

@ -126,7 +126,7 @@ void ChatLine::updateBBox()
bbox.setWidth(width); bbox.setWidth(width);
for(ChatLineContent* c : content) 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 QRectF ChatLine::sceneBoundingRect() const