forked from cefsharp/CefSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WPF - Fixed Html Dropdown positioning when near bottom of screen (Cle…
…anup) (cefsharp#4759) * WPF - Popup Mouse Transform - Refactor and performance improvements - WPF Example - Enable popup transform by default Issue cefsharp#2820
- Loading branch information
Showing
7 changed files
with
74 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using CefSharp.Wpf.Internals; | ||
|
||
namespace CefSharp.Wpf.Experimental | ||
{ | ||
public static class ExperimentalExtensions | ||
{ | ||
public static void UsePopupMouseTransform(this ChromiumWebBrowser chromiumWebBrowser) | ||
{ | ||
chromiumWebBrowser.MousePositionTransform = new MousePositionTransform(); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using CefSharp.Structs; | ||
|
||
namespace CefSharp.Wpf.Internals | ||
{ | ||
/// <summary> | ||
/// Implement this interface to control transform the mouse position | ||
/// </summary> | ||
public interface IMousePositionTransform | ||
{ | ||
System.Windows.Point UpdatePopupSizeAndPosition(Rect originalRect, Rect viewRect); | ||
void OnPopupShow(bool isOpen); | ||
void TransformMousePoint(ref System.Windows.Point point); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
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) | ||
{ | ||
|
||
} | ||
} | ||
} |