mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
14a6390f03
commit
90169e8f3b
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue