OnContentsSizeChange() for CEF3?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

OnContentsSizeChange() for CEF3?

Postby jakaw » Fri Mar 22, 2013 2:31 pm

Why doesn't have OnContentsSizeChange() in CEF3? How can I resize window to size of body content? For example, if the page has a image with 400x400px and window has 100x150px, how to resize the window after the image has leaded?
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm

Re: OnContentsSizeChange() for CEF3?

Postby magreenblatt » Fri Mar 22, 2013 2:47 pm

You can use JavaScript to detect the page size and tell the application via (for example) JavaScript bindings to resize the window.

https://code.google.com/p/chromiumembed ... ail?id=873 is the issue for tracking OnContentsSizeChange() support in CEF3.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 115 guests