Closed Bug 898701 Opened 12 years ago Closed 12 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+
Status: NEW → RESOLVED
Closed: 12 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: