DisplayHandlerOnAutoResize Method |
Version 101.0.180
Called when auto-resize is enabled via IBrowserHost.SetAutoResizeEnabled and the contents have auto-resized.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax protected virtual bool OnAutoResize(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
Size newSize
)
protected:
virtual bool OnAutoResize(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
Size newSize
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
the ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - newSize
- Type: CefSharp.StructsSize
will be the desired size in view coordinates
Return Value
Type:
BooleanReturn true if the resize was handled or false for default handling.
See Also