Get Size from body Element in OnContentSizeChange

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.

Get Size from body Element in OnContentSizeChange

Postby oliveair » Fri Jan 11, 2013 3:11 am

Hello,

I'm new in CEF.
I try to get the dimensions of body element in the OnContentSizeChange method.
I put the CEF in my own MFC window and want to fit the size from this window to the HTML content.
Maybe if you expand an tree browser etc...

If there is a way to get the offset from a div by using identifiing by id it will be also a god solution.

Thank you for your help!

Cheers!
Olli
oliveair
Newbie
 
Posts: 1
Joined: Fri Jan 11, 2013 3:02 am

Re: Get Size from body Element in OnContentSizeChange

Postby magreenblatt » Fri Jan 11, 2013 10:02 am

You can use JavaScript to query size/placement information and communicate it with your application via JavaScript bindings. More info on JavaScript bindings available here: http://code.google.com/p/chromiumembedd ... ntegration
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 193 guests