Skip to content

Commit cbf8180

Browse files
committed
fix: replece resize to setFixedSize
to fixed size,please used setFixedSize PMS: BUG-351725
1 parent 075a564 commit cbf8180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dock-network-plugin/dockcontentwidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
22
//
33
// SPDX-License-Identifier: LGPL-3.0-or-later
44

@@ -76,7 +76,7 @@ public Q_SLOTS:
7676
m_netView->setMaxHeight(h);
7777
if (m_netView->height() > h)
7878
m_netView->setFixedHeight(h);
79-
resize(m_netView->width(), qMax(m_minHeight, m_netView->height() + 20 + m_mainLayout->contentsMargins().top() + (m_netCheckBtn->isVisibleTo(this) ? (m_netSetBtn->height() + m_netCheckBtn->height() + 10) : m_netSetBtn->height())));
79+
setFixedSize(m_netView->width(), qMax(m_minHeight, m_netView->height() + 20 + m_mainLayout->contentsMargins().top() + (m_netCheckBtn->isVisibleTo(this) ? (m_netSetBtn->height() + m_netCheckBtn->height() + 10) : m_netSetBtn->height())));
8080
}
8181
void setNetCheckBtnVisible(bool visible) {
8282
m_netCheckBtn->setVisible(visible);

0 commit comments

Comments
 (0)