File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Windows ;
3+ using System . Windows . Controls . Primitives ;
34using Rg . Plugins . Popup . Pages ;
45using Rg . Plugins . Popup . WPF . Renderers ;
56using Xamarin . Forms ;
@@ -21,6 +22,7 @@ public class PopupPageRenderer : PageRenderer
2122 internal void Prepare ( WinPopup container )
2223 {
2324 Container = container ;
25+ Container . Placement = PlacementMode . Absolute ;
2426
2527 if ( Application . Current . MainWindow != null )
2628 Application . Current . MainWindow . SizeChanged += OnSizeChanged ;
@@ -74,8 +76,8 @@ private void UpdateElementSize()
7476 CurrentElement . Layout ( rectangle ) ;
7577
7678 CurrentElement . BatchCommit ( ) ;
77- Container . VerticalOffset = rectangle . X ;
78- Container . HorizontalOffset = rectangle . Y ;
79+ Container . VerticalOffset = rectangle . Y ;
80+ Container . HorizontalOffset = rectangle . X ;
7981 }
8082 }
8183}
You can’t perform that action at this time.
0 commit comments