- qreal y = (frameRect().height() - _layout.boundingRect().height()) / 2;
- _layout.draw(&painter, QPointF(0, y), _extraLayoutList);
+ qreal y = contentsRect().y() + (contentsRect().height() - _layout.boundingRect().height()) / 2;
+ _layout.draw(&painter, QPointF(contentsRect().x(), y), _extraLayoutList);