Skip to content

Commit

Permalink
fix: disable resize of dock popup window
Browse files Browse the repository at this point in the history
Use setFixedSize instead of resize so that dock popup window is not
resizable.

Log: disable resize of dock popup window
Issue: linuxdeepin/developer-center#6264
  • Loading branch information
asterwyx committed Jan 18, 2024
1 parent 27e1493 commit 326f510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/util/dockpopupwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void DockPopupWindow::setContent(QWidget *content)
m_lastWidget = content;
content->setParent(this);
content->show();
resize(content->sizeHint());
setFixedSize(content->sizeHint());
}

void DockPopupWindow::setExtendWidget(QWidget *widget)
Expand Down Expand Up @@ -142,7 +142,7 @@ void DockPopupWindow::show(const int x, const int y)
displayPoint.setX(qMin(screenRect.x() + screenRect.width() - getContent()->width(), displayPoint.x()));
}
move(displayPoint);
resize(m_lastWidget->size());
setFixedSize(m_lastWidget->size());
DBlurEffectWidget::show();
activateWindow();
}
Expand Down

0 comments on commit 326f510

Please sign in to comment.