diff --git a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp index f0248ed7d..0181b161b 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_panel.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_panel.cpp @@ -1398,7 +1398,6 @@ 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 b55994411..54f6db54c 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -615,8 +615,6 @@ void MainWindow::refreshTitleWidget() { } void MainWindow::updateMinimumSize() { - setMinimumWidth(computeMinWidth()); - setMinimumHeight(computeMinHeight()); } void MainWindow::recountGeometryConstraints() { @@ -969,17 +967,11 @@ 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 {