Full screen mode: big images in landscape orientation are always shown at original size
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start by reproducing the problem in the full screen widget with a landscape image larger than the screen, then trace the image-sizing behavior used when fullscreen mode is activated. Compare it with the working portrait-image behavior. Done means oversized landscape images fit the screen fully while preserving their aspect ratio, without relying on non-working scrollbars.
Written by the indexing model from the issue text.
Description
Describe the bug
When using the full screen widget, landscape images larger than screen size are always displayed zoomed at original size. Only a portion of the image is visible, with (not working) scrollbars at side.
Portrait images are correctly shown (if screen is landscape, width > height).
To Reproduce
Steps to reproduce the behavior:
- Open a landscape image.
- Click on 'full screen' widget (square icon in the three dots menu)
- The fulll screen mode is activated, but the image is not correctly resized to fit the screen.
Expected behavior
The image should fit screen size, being fully visible in its correct aspect ratio.
Screenshots
Image out of fullscreen
Same image in fullscreen mode:
Desktop (please complete the following information):
- OS: every tried: Android, Linux Mint, Ubuntu, Windows
- Browser: every tried: Fennec on mobile, Firefox, Brave, Librewolf
** Nextcloud version: **
v34.0.3 but this issue appeared several major versions ago.
- Dominant language
- JavaScript
- Stars
- 121
- Forks
- 70
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 16
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/viewer
-
[Bug]: Image editor silently writes PNG data into .JPG files (uppercase extension breaks canvas.toBlob MIME)Possibly taken @aniruddh18122006-cyber claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/viewer#3424 · 3 comments ·
Maintainers usually reply within 1 day
-
3. to review
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nextcloud/viewer#3196 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 3/5 1-2 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
All issues in nextcloud/viewer
Similar issues
-
needs-website-changes
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jaegertracing/jaeger-ui#4596 ·
Maintainers usually reply within 1 day
-
channels:add check:passed
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 9 days