1
0
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:
krepa098 2014-12-10 10:41:22 +01:00
parent 5ae506fe3b
commit b6fd9ed02e

View File

@ -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