diff --git a/Qss.cpp b/Qss.cpp index bc06fcb..bed9815 100644 --- a/Qss.cpp +++ b/Qss.cpp @@ -238,7 +238,7 @@ void QssMainWindow::OnMaxOrRestore(bool max) rc.setRight(rc.right() - 50); this->setGeometry(rc); - this->setFixedHeight(rc.height()); + this->setFixedHeight(rc.height() - m_titleBar->height()); } }