Added scaling to the width and height of the Wpf Popup

This commit is contained in:
Steve van Treeck
2015-04-01 08:31:06 -05:00
parent d294ec6ed4
commit fc6c2af770
+2 -2
View File
@@ -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);