From fc6c2af7701c2ccdffa2008ed69b451c6410044a Mon Sep 17 00:00:00 2001 From: Steve van Treeck Date: Wed, 1 Apr 2015 08:31:06 -0500 Subject: [PATCH] Added scaling to the width and height of the Wpf Popup --- CefSharp.Wpf/ChromiumWebBrowser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 013267b13..b204ac161 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -1064,8 +1064,8 @@ namespace CefSharp.Wpf private void SetPopupSizeAndPositionImpl(int width, int height, int x, int y) { - popup.Width = width; - popup.Height = height; + popup.Width = width / matrix.M11; + popup.Height = height / matrix.M22; var popupOffset = new Point(x / matrix.M11, y / matrix.M22); var locationFromScreen = PointToScreen(popupOffset);