client: Always load email once view is mapped

Remove CSS width workaround.

Fix #283 #1205
This commit is contained in:
Cédric Bellegarde 2023-03-01 22:02:11 +01:00 committed by Niels De Graef
parent d47e357b2c
commit 40a2c1aec4
6 changed files with 69 additions and 38 deletions

View file

@ -43,7 +43,7 @@ public abstract class Components.WebViewTestCase<V> : TestCase {
protected virtual void load_body_fixture(string html = "") {
WebView client_view = (WebView) this.test_view;
client_view.load_html(html);
client_view.load_html_headless(html);
while (!client_view.is_content_loaded) {
Gtk.main_iteration();
}

View file

@ -258,7 +258,7 @@ long, long, long, long, long, long, long, long, long, long,
}
protected override void load_body_fixture(string html = "") {
this.test_view.load_html(html, "", false, false);
this.test_view.load_html_headless(html, "", false, false);
while (this.test_view.is_loading) {
Gtk.main_iteration();
}

View file

@ -421,7 +421,7 @@ I can send email through smtp.gmail.com:587 or through <a href="https://www.gmai
protected void load_body_fixture_full(string body,
string quote,
bool top_posting) {
this.test_view.load_html(body, quote, top_posting, false);
this.test_view.load_html_headless(body, quote, top_posting, false);
while (this.test_view.is_loading) {
Gtk.main_iteration();
}