From the documentation of CefBrowser.SetSize() method:
Set the size of the specified element. This method is only used when window rendering is disabled.
It is not true, I've tried calling this function when window rendering is enabled and it works. In my use case I'm trying to get capture image of the whole scrollable content on a webpage, I'm calling SetSize() and then GetImage(), but it doesn't work for the first time, the SetSize() method executes asynchrously (there is no mention about that in method documentation), only when I do something on a webpage to force the Paint event then the second call to GetImage() will get me desired result.
Is there some other way to force the paint event when window rendering is enabled?
May I rely on this behavior that this method also works when window rendering is enabled? Or may it break in the future? Creating a separate off-screen browser just to capture the image is probably not a good idea, as it won't work for ajax applications where it can't be guaranteed that the url from the on-screen browser will give me the same content when I load it in an off-screen browser.
Czarek.