Skip to content

Conversation

@ne0rrmatrix
Copy link
Member

Description of Change

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.

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: https://github.com/MicrosoftDocs/CommunityToolkit/pulls

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.
Copilot AI review requested due to automatic review settings May 27, 2025 01:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adjusts the dimensions of the popup media element to provide a shorter and wider display, resolving an issue where the control bar's left and right edges were being cut off.

  • Updated HeightRequest from 600 to 300
  • Updated WidthRequest from 600 to 800

Comment on lines +254 to +255
HeightRequest = 300,
WidthRequest = 800,
Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting these dimension values into constants to improve maintainability and consistency across UI components.

Suggested change
HeightRequest = 300,
WidthRequest = 800,
HeightRequest = PopupHeight,
WidthRequest = PopupWidth,

Copilot uses AI. Check for mistakes.
@TheCodeTraveler
Copy link
Collaborator

The Popup Video is now clipped on iOS.

image

In your video, the MediaElement is clipped in the Popup. This likely means that MauiMediaElement is not properly designed on Windows. I suggest digging into how MediaElement is displayed on Windows and fixing the root cause.

@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Media Element Popup Dimensions

2 participants