Skip to content

Commit

Permalink
Merge pull request #104 from IeuanWalker/WindowsResizing
Browse files Browse the repository at this point in the history
Fix: Windows window resizing
  • Loading branch information
LuckyDucko authored Mar 7, 2024
2 parents 18d440b + d484c45 commit 87fb74f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Layouts;
using Microsoft.Maui.Platform;

namespace Mopups.Platforms.Windows
Expand All @@ -9,6 +10,13 @@ public PopupPageHandler()
{
}

protected override void ConnectHandler(ContentPanel platformView)
{
base.ConnectHandler(platformView);

PlatformView.SizeChanged += (_, e) => VirtualView.ComputeDesiredSize(e.NewSize.Width, e.NewSize.Height);
}

protected override ContentPanel CreatePlatformView()
{
return new PopupPageRenderer(this);
Expand Down

0 comments on commit 87fb74f

Please sign in to comment.