OnBeforePopup coordinates

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.

OnBeforePopup coordinates

Postby amitkanfer » Thu Aug 14, 2014 7:56 am

Hi guys,
i see that in the method "OnBeforePopup", the X,Y coordinates in the windowInfo are not set.
Is that a bug a is it because the X,Y are to be set by the calling application?

thanks,
Amit
amitkanfer
Techie
 
Posts: 31
Joined: Mon Jul 21, 2014 4:10 am

Re: OnBeforePopup coordinates

Postby magreenblatt » Thu Aug 14, 2014 8:01 am

They should be set by the application. Any coordinate info from JS will be in CefPopupFeatures.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: OnBeforePopup coordinates

Postby amitkanfer » Thu Aug 14, 2014 9:15 am

thanks alot!
amitkanfer
Techie
 
Posts: 31
Joined: Mon Jul 21, 2014 4:10 am

Re: OnBeforePopup coordinates

Postby amitkanfer » Thu Aug 14, 2014 10:01 am

By the way... popupFeatures is always NULL...

also, when i play with the 'fullscreen', 'toolbar' params here:
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open

it doesn't take effect in chrome, but works OK in IE for example...

why is that?

Thanks again
amitkanfer
Techie
 
Posts: 31
Joined: Mon Jul 21, 2014 4:10 am

Re: OnBeforePopup coordinates

Postby magreenblatt » Thu Aug 14, 2014 10:03 am

What CEF version are you using, and how are you opening the popup window? See https://code.google.com/p/chromium/issu ... l?id=82522 for the toolbar issue.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: OnBeforePopup coordinates

Postby amitkanfer » Thu Aug 14, 2014 10:07 am

i'm using:
#define CEF_VERSION_MAJOR 3
#define CEF_REVISION 1562
#define COPYRIGHT_YEAR 2014

#define CHROME_VERSION_MAJOR 31
#define CHROME_VERSION_MINOR 0
#define CHROME_VERSION_BUILD 1650
#define CHROME_VERSION_PATCH 57

and using http://www.w3schools.com/jsref/tryit.asp?filename=tryamigjsref_win_open5 to open the popup.

But just now i saw this online:
http://stackoverflow.com/questions/2572333/google-chrome-window-open-workaround

so it seems like a known security measure.

Amit
amitkanfer
Techie
 
Posts: 31
Joined: Mon Jul 21, 2014 4:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 20 guests