summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-24 21:53:30 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-24 21:53:30 +0300
commitc11b18d5e03a68bf71de9e0593e1e5060c09fa2b (patch)
tree984a92277c34e2bb0da5c39e160344bbff7e6c62 /include
parentBump version to 0.4.1 (diff)
downloadnheko-c11b18d5e03a68bf71de9e0593e1e5060c09fa2b.tar.xz
Fix "jumpy messages" regression
Caused by the commit addressing #193
Diffstat (limited to 'include')
-rw-r--r--include/timeline/TimelineItem.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/timeline/TimelineItem.h b/include/timeline/TimelineItem.h

index 6011dd44..dda6662f 100644 --- a/include/timeline/TimelineItem.h +++ b/include/timeline/TimelineItem.h
@@ -68,20 +68,12 @@ public: this, &TextLabel::adjustHeight); document()->setDocumentMargin(0); - - setFixedHeight(document()->size().height()); - } - - QSize sizeHint() const override - { - ensurePolished(); - return document()->size().toSize(); } void wheelEvent(QWheelEvent *event) override { event->ignore(); } private slots: - void adjustHeight(const QSizeF &size) { setFixedHeight(size.height()); } + void adjustHeight(const QSizeF &size) { setMinimumHeight(size.height()); } }; class TimelineItem : public QWidget