qt: Don't resize renderer screen beyond window size
This commit is contained in:
@@ -261,7 +261,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
+ (statusBar()->height() * !hide_status_bar)
|
||||
+ (ui->toolBar->height() * !hide_tool_bar);
|
||||
|
||||
ui->stackedWidget->resize(w, h);
|
||||
ui->stackedWidget->resize(w, (h / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.)));
|
||||
setFixedSize(w, modifiedHeight);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user