We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8765fb2 commit e3b40b9Copy full SHA for e3b40b9
1 file changed
src/session-widgets/userframelist.cpp
@@ -273,9 +273,12 @@ void UserFrameList::updateLayout(int width)
273
if (countWidth > 0) {
274
if (m_flowLayout->count() <= count) {
275
m_scrollArea->setFixedSize(countWidth, userWidgetHeight + 20);
276
+ // 单行用户时,限制高度避免滚动条
277
m_centerWidget->setMaximumHeight(m_scrollArea->height());
278
} else {
279
m_scrollArea->setFixedSize(countWidth, (userWidgetHeight + UserFrameSpacing) * 2);
280
+ // 多行用户时,清除高度限制,让内容自适应以支持滚动
281
+ m_centerWidget->setMaximumHeight(QWIDGETSIZE_MAX);
282
}
283
284
m_centerWidget->setFixedWidth(m_scrollArea->width() - 10);
0 commit comments