It is for Mac platform. The CefBrowser will shift from the view and be clipped.
Do anyone know how to solve this?
The reproduce steps are:
Step1. I resize the window, CefBrowser looks good which will show scroll bars when the window becomes small.
https://github.com/yingfangdu/TempFolder/blob/master/Good.jpg
Step2. I resize the container NSView directly, the CefBrowser will squeeze the content (to make it simple, can put the CefBrowser in a NSSplitView and drag & drop the splitter)
https://github.com/yingfangdu/TempFolder/blob/master/ContentSqueeze.jpg
Step3. I resize the window again, the CefBrowser shifts, part of its control is clipped.
https://github.com/yingfangdu/TempFolder/blob/master/LayoutMessup.jpg
I upload a full video here and some screen shots here.
https://github.com/yingfangdu/TempFolder/blob/master/NSViewResizeCefBrowser_2.mov
The chrome version I used:
3.3396.1782.gc368dbf
Chromium 67.0.3396.79
OS Mac OS X
WebKit 537.36 (@161bdad7314804dc8c72f850396fcd696e8863e8)
JavaScript 6.7.288.44
Flash
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Command Line --lang=en-US --log-