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:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user