Browse Source

chatline: fixed bbox height calculation

pull/974/head
krepa098 11 years ago
parent
commit
b6fd9ed02e
  1. 2
      src/chatlog/chatline.cpp

2
src/chatlog/chatline.cpp

@ -98,7 +98,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().bottom() - pos.y(), bbox.height()));
} }
QRectF ChatLine::boundingSceneRect() const QRectF ChatLine::boundingSceneRect() const

Loading…
Cancel
Save