diff --git a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp index 0181b161b..f0248ed7d 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp @@ -1398,6 +1398,7 @@ void Panel::initGeometry() { const auto center = Core::App().getPointForCallPanelCenter(); const auto rect = QRect(0, 0, st::groupCallWidth, st::groupCallHeight); window()->setGeometry(rect.translated(center - rect.center())); + window()->setMinimumSize(rect.size()); window()->show(); } diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index 54f6db54c..b55994411 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -615,6 +615,8 @@ void MainWindow::refreshTitleWidget() { } void MainWindow::updateMinimumSize() { + setMinimumWidth(computeMinWidth()); + setMinimumHeight(computeMinHeight()); } void MainWindow::recountGeometryConstraints() { @@ -967,11 +969,17 @@ void MainWindow::showRightColumn(object_ptr widget) { const auto wasMinimumWidth = minimumWidth(); const auto nowMinimumWidth = computeMinWidth(); const auto firstResize = (nowMinimumWidth < wasMinimumWidth); + if (firstResize) { + setMinimumWidth(nowMinimumWidth); + } if (!isMaximized()) { tryToExtendWidthBy(wasWidth + nowRightWidth - wasRightWidth - width()); } else { updateControlsGeometry(); } + if (!firstResize) { + setMinimumWidth(nowMinimumWidth); + } } int MainWindow::maximalExtendBy() const {