Files
cefsharp/CefSharp.Wpf/Internals/NoOpMousePositionTransform.cs
Alex Maitland b26cb077e3 WPF - Fixed Html Dropdown positioning when near bottom of screen (Cleanup) (#4759)
* WPF - Popup Mouse Transform

- Refactor and performance improvements
- WPF Example - Enable popup transform by default

Issue #2820
2024-03-16 08:03:16 +10:00

22 lines
568 B
C#

using CefSharp.Structs;
namespace CefSharp.Wpf.Internals
{
public sealed class NoOpMousePositionTransform : IMousePositionTransform
{
System.Windows.Point IMousePositionTransform.UpdatePopupSizeAndPosition(Rect originalRect, Rect viewRect)
{
return new System.Windows.Point(originalRect.X, originalRect.Y);
}
void IMousePositionTransform.OnPopupShow(bool isOpen)
{
}
void IMousePositionTransform.TransformMousePoint(ref System.Windows.Point point)
{
}
}
}