2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Remove minimum window size (#238)

This commit is contained in:
Artem Prokop
2021-12-17 05:51:09 -08:00
committed by GitHub
parent 99debb9730
commit a2c2e06fd5
2 changed files with 0 additions and 9 deletions

View File

@@ -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();
}

View File

@@ -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<TWidget> 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 {