Skip to content
Snippets Groups Projects
Commit c11b18d5 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Fix "jumpy messages" regression

Caused by the commit addressing #193
parent ec7b3e1e
No related branches found
No related tags found
No related merge requests found
...@@ -68,20 +68,12 @@ public: ...@@ -68,20 +68,12 @@ public:
this, this,
&TextLabel::adjustHeight); &TextLabel::adjustHeight);
document()->setDocumentMargin(0); document()->setDocumentMargin(0);
setFixedHeight(document()->size().height());
}
QSize sizeHint() const override
{
ensurePolished();
return document()->size().toSize();
} }
void wheelEvent(QWheelEvent *event) override { event->ignore(); } void wheelEvent(QWheelEvent *event) override { event->ignore(); }
private slots: private slots:
void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); } void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); }
}; };
class TimelineItem : public QWidget class TimelineItem : public QWidget
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment