From bfec066125447b5dfa49082e78ae223141ce7347 Mon Sep 17 00:00:00 2001 From: James Crutchley Date: Mon, 26 May 2025 18:39:21 -0700 Subject: [PATCH] Adjust popup media element dimensions Changed the `HeightRequest` from 600 to 300 and the `WidthRequest` from 600 to 800 for the `popupMediaElement`, resulting in a shorter and wider display in the popup. This fixes controls bar that had the left and right edges cut off in sample app. --- .../Pages/Views/MediaElement/MediaElementPage.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/CommunityToolkit.Maui.Sample/Pages/Views/MediaElement/MediaElementPage.xaml.cs b/samples/CommunityToolkit.Maui.Sample/Pages/Views/MediaElement/MediaElementPage.xaml.cs index debbbdbfe9..db73566138 100644 --- a/samples/CommunityToolkit.Maui.Sample/Pages/Views/MediaElement/MediaElementPage.xaml.cs +++ b/samples/CommunityToolkit.Maui.Sample/Pages/Views/MediaElement/MediaElementPage.xaml.cs @@ -251,8 +251,8 @@ void DisplayPopup(object sender, EventArgs e) AndroidViewType = AndroidViewType.SurfaceView, Source = MediaSource.FromResource("AppleVideo.mp4"), MetadataArtworkUrl = botImageUrl, - HeightRequest = 600, - WidthRequest = 600, + HeightRequest = 300, + WidthRequest = 800, ShouldAutoPlay = true, ShouldShowPlaybackControls = true, };