Why chrome window.screenTop return 0?

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.

Why chrome window.screenTop return 0?

Postby sx5486510 » Mon Sep 12, 2016 3:07 am

I test window.screenTop in chrome, it return 0.
And i test in cef, the return val is the distance to the screen-top.

I check the chrome, the Chrome_WidgetWin_1 window have 85 Pixels offset screent top.

How to achieve that?
sx5486510
Techie
 
Posts: 10
Joined: Thu Aug 11, 2016 9:51 am

Re: Why chrome window.screenTop return 0?

Postby magreenblatt » Mon Sep 12, 2016 10:02 am

Are you saying that window.screenTop works correctly in CEF but not in Chrome? If you think you've found a bug in Chrome you can file a report at http://crbug.com/new.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Why chrome window.screenTop return 0?

Postby sx5486510 » Sat Sep 17, 2016 4:35 am

magreenblatt wrote:Are you saying that window.screenTop works correctly in CEF but not in Chrome? If you think you've found a bug in Chrome you can file a report at http://crbug.com/new.


No, there is no bug. i find the way to solve that.

Thanks
sx5486510
Techie
 
Posts: 10
Joined: Thu Aug 11, 2016 9:51 am

Re: Why chrome window.screenTop return 0?

Postby sx5486510 » Sun Sep 18, 2016 2:17 am

magreenblatt wrote:Are you saying that window.screenTop works correctly in CEF but not in Chrome? If you think you've found a bug in Chrome you can file a report at http://crbug.com/new.


Hi magreenblatt, a new problem
I run cefclient.exe with --off-screen-rendering-enable, this
Code: Select all
 window.screen.height

dos not match my screen height, it returned to the window height of OSR hwnd, What's the problem?

Thank you.
sx5486510
Techie
 
Posts: 10
Joined: Thu Aug 11, 2016 9:51 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 100 guests