Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix size of media on iPad when multitasking. #6339

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Jun 24, 2022

When opening attachments from the timeline they were being sized to fit the screen. This mean images were zoomed in on iPad when using Split View or Slide-Over. A similar effect could be seen when using the app on an Apple Silicon Mac.

Note: I've also moved MXKAttachmentsViewController alongside AttachmentsViewController as by default MXKViewControllers are added to the share extension and this one isn't needed there.

Before.mp4
After.mp4

@pixlwave pixlwave force-pushed the doug/fix-ipad-media-viewing branch from 782b1cc to 2358241 Compare June 24, 2022 09:52
@pixlwave pixlwave marked this pull request as ready for review June 24, 2022 09:52
@sonarcloud
Copy link

sonarcloud bot commented Jun 24, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions
Copy link

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/4SakGg

Copy link
Contributor

@gileluard gileluard left a comment

Choose a reason for hiding this comment

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

lgtm 👍

Copy link
Contributor

@aringenbach aringenbach left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pixlwave pixlwave merged commit 730eafc into develop Jun 24, 2022
@pixlwave pixlwave deleted the doug/fix-ipad-media-viewing branch June 24, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants