mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Stretch WebView to fit dialog's height.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
797fbffd39
commit
be23e747de
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue