force resize after sending cef_browser::on_after_created() callback

this fixes rendering of the first frame to be at the size of the browser
instead of the size of the initial window_info
This commit is contained in:
Mike Blumenkrantz 2015-05-26 17:58:33 -04:00
parent 14a6390f03
commit 90169e8f3b

View file

@ -262,6 +262,7 @@ pub fn browser_callback_after_created(browser: CefBrowser) {
life_span_handler.on_after_created(browser.clone());
}
browser.downcast().callback_executed.set(true);
browser.downcast().host.was_resized();
}
fn browser_host_create(window_info: &cef_window_info_t,