WebviewDialog minimal size.

This commit is contained in:
David Kocik 2024-04-24 10:30:03 +02:00
parent d3d16aa964
commit fd8a580dee

View File

@ -655,7 +655,8 @@ WebViewDialog::WebViewDialog(wxWindow* parent, const wxString& url, const wxStri
, m_loading_html(loading_html)
{
wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);
SetSizer(topsizer);
topsizer->SetMinSize(size);
SetSizerAndFit(topsizer);
// Create the webview
m_browser = WebView::CreateWebView(this, GUI::format_wxstr("file://%1%/web/%2%.html", boost::filesystem::path(resources_dir()).generic_string(), m_loading_html));