Page MenuHomePhabricator

While viewing an image, occasionally, rotating the device to landspace orientation causes odd image behaviour
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Navigate to an article (example: Ryan Coogler
  • Scroll down to the second image in the article (Example: Coogler accepts the US Grand Jury Prize)
  • Tap the image
  • Rotate the device to landscape mode

What happens?:
In some cases, like the Ryan Coogler example, portions of the 1st image appear on the left side of the screen and portions of the 2nd image on the right. In other cases (Example: Barack Obama), tapping the second image (Obama with grandfather) and rotating causes an image from the infobox to appear.

This only seems to happen once per entering the image viewer. Subsequent swipes and rotations do not reproduce the same issue.

Overall

What should have happened instead?:
The image should stay centered after rotating.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Tested on 2.7.50529-beta-2025-04-21
Other information (browser name/version, screenshots, etc.):
Ryan Coogler after rotation

Screenshot_20250429-163157.png (1×2 px, 1 MB)

Obama before/after rotation

Screenshot_20250429-161408.png (2×1 px, 801 KB)
Screenshot_20250429-161432.png (1×2 px, 632 KB)

Chocolate

Screenshot_20250429-161346.png (1×2 px, 689 KB)

Event Timeline

Fixed on 2.7.50537-r-2025-06-23

Tested on Pixel 6 on Android 15. Tested the original articles and several others. Images are appearing as expected now.