We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1bcd60 commit e1424d8Copy full SHA for e1424d8
src/session-widgets/userframelist.cpp
@@ -45,7 +45,7 @@ UserFrameList::UserFrameList(QWidget *parent)
45
46
void UserFrameList::initUI()
47
{
48
- m_centerWidget = new QWidget;
+ m_centerWidget = new QWidget(this);
49
m_centerWidget->setAccessibleName("UserFrameListCenterWidget");
50
51
m_flowLayout = new DFlowLayout(m_centerWidget);
@@ -273,6 +273,7 @@ void UserFrameList::updateLayout(int width)
273
if (countWidth > 0) {
274
if (m_flowLayout->count() <= count) {
275
m_scrollArea->setFixedSize(countWidth, userWidgetHeight + 20);
276
+ m_centerWidget->setMaximumHeight(m_scrollArea->height());
277
} else {
278
m_scrollArea->setFixedSize(countWidth, (userWidgetHeight + UserFrameSpacing) * 2);
279
}
0 commit comments