From be23e747de403fbb5ec4ff8c40a8bbc815cdbb05 Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 17 May 2022 05:01:33 +0300 Subject: [PATCH] Stretch WebView to fit dialog's height. Signed-off-by: alex-z --- src/gui/creds/webflowcredentialsdialog.cpp | 2 +- src/gui/wizard/webview.cpp | 2 +- src/gui/wizard/webviewpage.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/creds/webflowcredentialsdialog.cpp b/src/gui/creds/webflowcredentialsdialog.cpp index 159734b64..6edf9f3fb 100644 --- a/src/gui/creds/webflowcredentialsdialog.cpp +++ b/src/gui/creds/webflowcredentialsdialog.cpp @@ -55,7 +55,7 @@ WebFlowCredentialsDialog::WebFlowCredentialsDialog(Account *account, bool useFlo } else { #ifdef WITH_WEBENGINE _webView = new WebView(); - _containerLayout->addWidget(_webView); + _containerLayout->addWidget(_webView, 1); connect(_webView, &WebView::urlCatched, this, &WebFlowCredentialsDialog::urlCatched); #endif // WITH_WEBENGINE diff --git a/src/gui/wizard/webview.cpp b/src/gui/wizard/webview.cpp index 5f58df4f4..0ecaca08c 100644 --- a/src/gui/wizard/webview.cpp +++ b/src/gui/wizard/webview.cpp @@ -107,7 +107,7 @@ WebView::WebView(QWidget *parent) } _webview->setPage(_page); - _ui.verticalLayout->addWidget(_webview); + _ui.verticalLayout->addWidget(_webview, 1); connect(_webview, &QWebEngineView::loadProgress, _ui.progressBar, &QProgressBar::setValue); connect(_schemeHandler, &WebViewPageUrlSchemeHandler::urlCatched, this, &WebView::urlCatched); diff --git a/src/gui/wizard/webviewpage.cpp b/src/gui/wizard/webviewpage.cpp index 7aae73fc8..0b5ccd9ca 100644 --- a/src/gui/wizard/webviewpage.cpp +++ b/src/gui/wizard/webviewpage.cpp @@ -26,7 +26,7 @@ WebViewPage::WebViewPage(QWidget *parent) auto *layout = new QVBoxLayout(this); layout->setMargin(0); - layout->addWidget(_webView); + layout->addWidget(_webView, 1); setLayout(layout); connect(_webView, &WebView::urlCatched, this, &WebViewPage::urlCatched);