Skip to content

Commit e1424d8

Browse files
deepin-ci-robotyixinshark
authored andcommitted
sync: from linuxdeepin/dde-session-shell
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#31
1 parent b1bcd60 commit e1424d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/session-widgets/userframelist.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ UserFrameList::UserFrameList(QWidget *parent)
4545

4646
void UserFrameList::initUI()
4747
{
48-
m_centerWidget = new QWidget;
48+
m_centerWidget = new QWidget(this);
4949
m_centerWidget->setAccessibleName("UserFrameListCenterWidget");
5050

5151
m_flowLayout = new DFlowLayout(m_centerWidget);
@@ -273,6 +273,7 @@ void UserFrameList::updateLayout(int width)
273273
if (countWidth > 0) {
274274
if (m_flowLayout->count() <= count) {
275275
m_scrollArea->setFixedSize(countWidth, userWidgetHeight + 20);
276+
m_centerWidget->setMaximumHeight(m_scrollArea->height());
276277
} else {
277278
m_scrollArea->setFixedSize(countWidth, (userWidgetHeight + UserFrameSpacing) * 2);
278279
}

0 commit comments

Comments
 (0)