QScrollArea is used to avoid increasing view width, and not for actual
scroll reasons.
We should therefore disallow scrolling the view entirely, since this
causes bugs with being able to scroll random views.
BUG: 504252
#include <QGridLayout>
#include <QPropertyAnimation>
#include <QScrollArea>
+#include <QScrollBar>
#include <QStyle>
AnimatedHeightWidget::AnimatedHeightWidget(QWidget *parent)
m_contentsContainerParent->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_contentsContainerParent->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
m_contentsContainerParent->setWidgetResizable(true);
+ // Disables manual scrolling, for example with mouse scrollwheel.
+ m_contentsContainerParent->verticalScrollBar()->setEnabled(false);
+ m_contentsContainerParent->horizontalScrollBar()->setEnabled(false);
setMinimumWidth(0);
}