Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed May 27, 2015
1 parent 14a6390 commit 90169e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/cef/browser.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 90169e8

Please sign in to comment.