mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
Added scaling to the width and height of the Wpf Popup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user