From 219612c32e1e916b89fc2bd7e83739a0f9421ddc Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Mon, 18 Aug 2025 07:13:22 +0000 Subject: [PATCH] sync: from linuxdeepin/dde-session-shell Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: https://github.com/linuxdeepin/dde-session-shell/pull/31 --- src/session-widgets/userframelist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/session-widgets/userframelist.cpp b/src/session-widgets/userframelist.cpp index 1817835a3..33bf438ea 100644 --- a/src/session-widgets/userframelist.cpp +++ b/src/session-widgets/userframelist.cpp @@ -45,7 +45,7 @@ UserFrameList::UserFrameList(QWidget *parent) void UserFrameList::initUI() { - m_centerWidget = new QWidget; + m_centerWidget = new QWidget(this); m_centerWidget->setAccessibleName("UserFrameListCenterWidget"); m_flowLayout = new DFlowLayout(m_centerWidget); @@ -273,6 +273,7 @@ void UserFrameList::updateLayout(int width) if (countWidth > 0) { if (m_flowLayout->count() <= count) { m_scrollArea->setFixedSize(countWidth, userWidgetHeight + 20); + m_centerWidget->setMaximumHeight(m_scrollArea->height()); } else { m_scrollArea->setFixedSize(countWidth, (userWidgetHeight + UserFrameSpacing) * 2); }