Thumbnail is stretched if its aspect ratio is less than that of the container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell-extension-desktop-icons |
Fix Released
|
Unknown
|
|||
gnome-shell-extension-desktop-icons (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
Image thumbnails are stretched if the aspect ratio is less than the one of the container
[ Test case ]
To reproduce, create an image that has aspect ratio, e.g., ~0.5 (e.g. width = 250 and height = 500)
Save it in the desktop and ensure that the image has proper proportions.
[ Regression potential ]
Image thumbnails are distorted
----
This was discovered when investigating fix for bug #1868529.
Aspect ratio is still not correct for images that are more narrow than the container. To reproduce, create an image that has aspect ratio, e.g., ~0.5 (e.g. width = 250 and height = 500).
Line in fileItem.js where we calculate icon width does not count the margins (zero is used instead of actual margins):
let containerWidth = Prefs.getDesire
Here is how the margins are being calculated in desktopGrid.js:
description: | updated |
description: | updated |
Changed in gnome-shell-extension-desktop-icons (Ubuntu): | |
status: | New → Fix Committed |
tags: | added: fixed-upstream |
Changed in gnome-shell-extension-desktop-icons (Ubuntu Focal): | |
status: | New → Fix Committed |
description: | updated |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Changed in gnome-shell-extension-desktop-icons: | |
status: | Unknown → Fix Released |
Please include a screenshot/photo of the problem and report it to the developers at:
https:/ /gitlab. gnome.org/ World/ShellExte nsions/ desktop- icons/- /issues