window.screen.width can't return screenwidth in osr mode

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.

window.screen.width can't return screenwidth in osr mode

Postby luodijia » Tue Nov 24, 2015 11:05 pm

It returned the browser window's width. How can i get the screenwidth in osr mode?
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am

Re: window.screen.width can't return screenwidth in osr mode

Postby magreenblatt » Wed Nov 25, 2015 12:19 pm

Are you implementing CefRenderHandler::GetRootScreenRect to return a different value from CefRenderHandler::GetViewRect?
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: window.screen.width can't return screenwidth in osr mode

Postby luodijia » Sun Nov 29, 2015 9:54 pm

magreenblatt wrote:Are you implementing CefRenderHandler::GetRootScreenRect to return a different value from CefRenderHandler::GetViewRect?

RootScreen means the desktop's screen window or the ancestor of current render window? I found the cefclient demo return the ancestor of current render window, it's also not the real screenwidth of the computer.
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 38 guests