diff --git a/CefSharp.Wpf.HwndHost/CefSharp.Wpf.HwndHost.csproj b/CefSharp.Wpf.HwndHost/CefSharp.Wpf.HwndHost.csproj index 8adc3e3..665c72d 100644 --- a/CefSharp.Wpf.HwndHost/CefSharp.Wpf.HwndHost.csproj +++ b/CefSharp.Wpf.HwndHost/CefSharp.Wpf.HwndHost.csproj @@ -5,7 +5,7 @@ CefSharp.Wpf.HwndHost true true - 111.2.70 + 112.2.70 The CefSharp Authors The CefSharp Chromium-based browser component. The CefSharp.Wpf.HwndHost.ChromiumWebBrowser control is a drop in replacement for the CefSharp.Wpf.ChromiumWebBrowser that's rougly equivilent to hosting the WinForms version in WPF. Copyright © The CefSharp Authors @@ -23,11 +23,11 @@ - + - + diff --git a/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs b/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs index 9d77ff0..0e87a6e 100644 --- a/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf.HwndHost/ChromiumWebBrowser.cs @@ -13,6 +13,7 @@ using System.Windows.Threading; using CefSharp.DevTools.Page; using CefSharp.Internals; +using CefSharp.Structs; using CefSharp.Wpf.HwndHost.Internals; namespace CefSharp.Wpf.HwndHost @@ -1860,7 +1861,7 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) } /// - public async Task GetContentSizeAsync() + public async Task GetContentSizeAsync() { ThrowExceptionIfDisposed(); ThrowExceptionIfBrowserNotInitialized(); @@ -1870,7 +1871,9 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) //Get the content size var layoutMetricsResponse = await devToolsClient.Page.GetLayoutMetricsAsync().ConfigureAwait(continueOnCapturedContext: false); - return layoutMetricsResponse.CssContentSize; + var rect = layoutMetricsResponse.CssContentSize; + + return new Structs.DomRect(rect.X, rect.Y, rect.Width, rect.Height); } } diff --git a/appveyor.yml b/appveyor.yml index 5de31bd..93c2dcf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ image: Visual Studio 2019 -version: 111.2.70-CI{build} +version: 112.2.70-CI{build} clone_depth: 10