File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -241,8 +241,8 @@ private PositioningData GetPositioningData(IEnumerable<DependencyObject> visualA
241
241
if ( mainVisual == null ) throw new ArgumentException ( $ "{ nameof ( visualAncestry ) } must contains unless one { nameof ( Visual ) } control inside.") ;
242
242
243
243
var screen = Screen . FromPoint ( locationFromScreen ) ;
244
- var screenWidth = ( int ) DpiHelper . TransformToDeviceX ( mainVisual , ( int ) screen . Bounds . Width ) ;
245
- var screenHeight = ( int ) DpiHelper . TransformToDeviceY ( mainVisual , ( int ) screen . Bounds . Height ) ;
244
+ var screenWidth = ( int ) screen . Bounds . Width ;
245
+ var screenHeight = ( int ) screen . Bounds . Height ;
246
246
247
247
//Adjust the location to be in terms of the current screen
248
248
var locationX = ( int ) ( locationFromScreen . X - screen . Bounds . X ) % screenWidth ;
You can’t perform that action at this time.
0 commit comments