Closed Bug 898701 Opened 11 years ago Closed 11 years ago

[Gallery] image in thumbnails display not correctly

Categories

(Firefox OS Graveyard :: Gaia::Gallery, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:hd+, b2g-v1.1hd fixed)

VERIFIED FIXED
blocking-b2g hd+
Tracking Status
b2g-v1.1hd --- fixed

People

(Reporter: gduan, Assigned: gduan)

Details

Attachments

(4 files)

in HD device,

1. thumbnails border doesn't fully cover the image
2. when landscape mode, image doesn't fully fulfill the thumbnail

see attachments.
image cannot cover all thumbnail when landscape
blocking-b2g: --- → hd?
Attached image border.png
see image around the border, there's about 1px overlap another image
Attached file attach.html
1. px to rem
2. modify thumbnail background-size
3. modify outline-offset
Attachment #782087 - Flags: review?(rexboy)
Assignee: nobody → gduan
HD+ UI bug
blocking-b2g: hd? → hd+
Comment on attachment 782087 [details]
attach.html

1. and 3. are good to me.

2. doesn't happen on latest v1.1.0hd for me. I guess you saw that because those thumbnails
are generated by older version of MetadataParser.js, and didn't be cleaned. (i.e. by make
reset-gaia)

But thumbnails here are in fact blurred because we didn't take window.devicePixelRatio into
account when generating thumbnails. IMO what we really need to do here is to reflect
window.devicePixelRatio on generation thumbnails. In specific,
1) Multiply THUMBNAIL_WIDTH and THUMBNAIL_WIDTH by devicePixelRatio in MetadataParser.js.
2) use media query min-resolution (with dppx unit) to resize .thumbnail.

Anyway for this patch it's good for me with background-size in .thumbnails removed. Resizing every images to 100% violates its original design.
Attachment #782087 - Flags: review?(rexboy) → review+
Thanks Rex,
I decide to open bug 899526 for background-size problem.

Merged into 
master
https://github.com/mozilla-b2g/gaia/commit/64c856fa202abe57e6e5d71e7897906d5523ff1d
v1.1.0hd
https://github.com/mozilla-b2g/gaia/commit/06f462f7ca8e64acc5aceba5ecd39904c53a0dcf
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
[2013/10/21 Helix Testing]
Gaia:     c829a2042594b6c3a4899ee27979799a0f301534
Gecko:    http://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd/rev/f7c657f6d019
BuildID   20131015042201
Version   18.0
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: