Removing Resize border from CefBrowser.

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.

Removing Resize border from CefBrowser.

Postby dancvogel » Thu Oct 30, 2014 5:35 pm

My CefBrowser is displaying a resize border and I don't want it too.

I have an MFC application in which I'm using a CEF3 browser to display web content. The CefBrowser gets created as a child of a CFormView.

In ClientApp:CreateBrowser I can set the CefWindowInfo style and ex_style members but that only seems to effect the main CefFrame of the CefBrowser, and not the sub-frame. If i specify WS_BORDER for the style I get the expected WS_BORDER around the resize border.

I found if I create the CefBrowser after my CFormView is shown ( ShowWindow(SW_SHOW) ) the resize border doesn't appear. However, as soon as my window is resized, the CefBrowser once again shows the resize border.

Also, if on the resize event, I use SWP_NOSIZE when I call DeferWindowPos, the border doesn't appear. But then i can't resize my browser view.
dancvogel
Newbie
 
Posts: 4
Joined: Thu Oct 30, 2014 4:56 pm

Re: Removing Resize border from CefBrowser.

Postby magreenblatt » Thu Oct 30, 2014 7:15 pm

What CEF version are you using? Can you attach a screen shot that shows the problem?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Removing Resize border from CefBrowser.

Postby dancvogel » Thu Oct 30, 2014 7:23 pm

I'm using cef_binary_3.2171.1870_windows32
Attachments
ResizeBorder.png
ResizeBorder.png (44.57 KiB) Viewed 17488 times
dancvogel
Newbie
 
Posts: 4
Joined: Thu Oct 30, 2014 4:56 pm

Re: Removing Resize border from CefBrowser.

Postby dancvogel » Wed Nov 12, 2014 4:53 pm

I can see the border on the provided cefclient sample application. When the cefclient is first shown the border is not there, but as soon as I resize the window I see the resize border I'm talking about.

Using Spy++ I see that Chrome_WidgetWin_0 Has the WS_THICKFRAME style. That's most likely the cause.
Attachments
cefClient_spy.png
cefClient_spy.png (17.13 KiB) Viewed 17452 times
dancvogel
Newbie
 
Posts: 4
Joined: Thu Oct 30, 2014 4:56 pm

Re: Removing Resize border from CefBrowser.

Postby magreenblatt » Wed Nov 12, 2014 5:32 pm

This sounds like https://code.google.com/p/chromiumembed ... il?id=1401. Try using a newer build from the 2171 branch. This problem does not reproduce for me using current 2171 branch builds of cefclient.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Removing Resize border from CefBrowser.

Postby dancvogel » Wed Nov 12, 2014 9:09 pm

Yep! Using 2171.1902 solves the issue. Thanks!
dancvogel
Newbie
 
Posts: 4
Joined: Thu Oct 30, 2014 4:56 pm

Re: Removing Resize border from CefBrowser.

Postby puresimmer » Fri Nov 14, 2014 3:57 pm

Hi guys, I am currently seeing this issue with the latest build of the CEF trunk (Chromium 41.0.2217.0). Is there a way I can patch/fix this?

Thanks.

Shaun
puresimmer
Techie
 
Posts: 13
Joined: Mon Jan 20, 2014 6:05 pm

Re: Removing Resize border from CefBrowser.

Postby magreenblatt » Fri Nov 14, 2014 4:06 pm

puresimmer wrote:Hi guys, I am currently seeing this issue with the latest build of the CEF trunk (Chromium 41.0.2217.0). Is there a way I can patch/fix this?

This will be fixed in issue 1401. Use a release branch instead of trunk for the time being.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Removing Resize border from CefBrowser.

Postby puresimmer » Fri Nov 14, 2014 4:13 pm

magreenblatt wrote:
puresimmer wrote:Hi guys, I am currently seeing this issue with the latest build of the CEF trunk (Chromium 41.0.2217.0). Is there a way I can patch/fix this?

This will be fixed in issue 1401. Use a release branch instead of trunk for the time being.


Will do. Thanks for the quick response.

Shaun
puresimmer
Techie
 
Posts: 13
Joined: Mon Jan 20, 2014 6:05 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 46 guests