Window.open not working properly with 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.

Window.open not working properly with CEF3

Postby AbhimanyuVohra » Tue Aug 12, 2014 2:53 am

Hi

I am using CEF 3.1364.1094 in my Native App. On invoking "window.open("http://www.google.com/", "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=800, height=900, top=10, left=10");" through my js file, popup gets opened but is not of the correct size as given in the params. I have tried various combinations but nothing seems to work. I am unable to identify the problem.
Help will be highly appreciated.

Regards
Abhimanyu Vohra
AbhimanyuVohra
Techie
 
Posts: 23
Joined: Tue Oct 01, 2013 2:39 am

Re: Window.open not working properly with CEF3

Postby magreenblatt » Tue Aug 12, 2014 4:19 am

AbhimanyuVohra wrote:I am using CEF 3.1364.1094 in my Native App.

This is a very old version. You should update.

AbhimanyuVohra wrote:On invoking "window.open("http://www.google.com/", "_blank", "resizable=yes, scrollbars=yes, titlebar=yes, width=800, height=900, top=10, left=10");" through my js file, popup gets opened but is not of the correct size as given in the params. I have tried various combinations but nothing seems to work. I am unable to identify the problem.

Perhaps you're seeing https://code.google.com/p/chromiumembed ... ail?id=467.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Window.open not working properly with CEF3

Postby AbhimanyuVohra » Tue Aug 12, 2014 4:59 am

Hi

Thanks for the reply.
Due to some reasons out team cannot update to a later version. Can you please specify if there's a workaround for the issue.

Thanks
AbhimanyuVohra
Techie
 
Posts: 23
Joined: Tue Oct 01, 2013 2:39 am

Re: Window.open not working properly with CEF3

Postby magreenblatt » Tue Aug 12, 2014 6:13 am

Implement OnBeforePopup and set the CefWindowInfo size members to whatever value you prefer.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Window.open not working properly with CEF3

Postby AbhimanyuVohra » Tue Aug 12, 2014 8:26 am

Just to add, in my case the popup is always of fixed size. height or width has no impact on it.
AbhimanyuVohra
Techie
 
Posts: 23
Joined: Tue Oct 01, 2013 2:39 am


Return to Support Forum

Who is online

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