Skip to content
Permalink
Browse files

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
  • Loading branch information
Mike Blumenkrantz
Mike Blumenkrantz committed May 27, 2015
1 parent 14a6390 commit 90169e8f3b80e361e11e121a84441bcef844fe84
Showing with 1 addition and 0 deletions.
  1. +1 −0 ports/cef/browser.rs
@@ -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,

0 comments on commit 90169e8

Please sign in to comment.
You can’t perform that action at this time.