Skip to content

Commit 725e71a

Browse files
committed
DevTools Client - Viewport default Scale to 1.0
1 parent 03ab082 commit 725e71a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CefSharp.WinForms.Example/BrowserForm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,6 @@ private async void TakeScreenShotMenuItemClick(object sender, EventArgs e)
669669
{
670670
Width = contentSize.Width,
671671
Height = contentSize.Height,
672-
Scale = 1.0
673672
};
674673

675674
var data = await chromiumWebBrowser.CaptureScreenshotAsync(viewPort: viewPort, captureBeyondViewport: true);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace CefSharp.DevTools.Page
8+
{
9+
public partial class Viewport
10+
{
11+
/// <summary>
12+
/// Default Constructor
13+
/// </summary>
14+
public Viewport()
15+
{
16+
Scale = 1.0;
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)