mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
WinForms - Update xml doc Dock = DockStyle.Fill is the default
Make it clear we are setting the default to DockStyle.Fill, this may not be expected by some. It has been that way for 5+ years, so changing the default would be difficult and unexpected, instead we make it clearer this is the case. Resolves #3019
This commit is contained in:
@@ -416,10 +416,12 @@ namespace CefSharp.WinForms
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChromiumWebBrowser"/> class.
|
||||
/// **Important** - When using this constructor the <see cref="Control.Dock"/> property
|
||||
/// will default to <see cref="DockStyle.Fill"/>.
|
||||
/// </summary>
|
||||
/// <param name="html">html string to be initially loaded in the browser.</param>
|
||||
/// <param name="requestContext">Request context that will be used for this browser instance,
|
||||
/// if null the Global Request Context will be used</param>
|
||||
/// <param name="requestContext">(Optional) Request context that will be used for this browser instance, if null the Global
|
||||
/// Request Context will be used.</param>
|
||||
public ChromiumWebBrowser(HtmlString html, IRequestContext requestContext = null) : this(html.ToDataUriString(), requestContext)
|
||||
{
|
||||
|
||||
@@ -427,10 +429,12 @@ namespace CefSharp.WinForms
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChromiumWebBrowser"/> class.
|
||||
/// **Important** - When using this constructor the <see cref="Control.Dock"/> property
|
||||
/// will default to <see cref="DockStyle.Fill"/>.
|
||||
/// </summary>
|
||||
/// <param name="address">The address.</param>
|
||||
/// <param name="requestContext">Request context that will be used for this browser instance,
|
||||
/// if null the Global Request Context will be used</param>
|
||||
/// <param name="requestContext">(Optional) Request context that will be used for this browser instance, if null the Global
|
||||
/// Request Context will be used.</param>
|
||||
public ChromiumWebBrowser(string address, IRequestContext requestContext = null)
|
||||
{
|
||||
Dock = DockStyle.Fill;
|
||||
|
||||
Reference in New Issue
Block a user