Closed Bug 900128 Opened 12 years ago Closed 12 years ago

Change the aspect ratio of TopBookmark thumbnails to 7:4 ratio

Categories

(Firefox for Android Graveyard :: Theme and Visual Design, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 26

People

(Reporter: sriram, Assigned: sriram)

References

Details

(Whiteboard: fixed-fig)

Attachments

(1 file, 1 obsolete file)

As per UX decision is more rectangular than square.
Attached patch Patch (obsolete) — Splinter Review
OMG OMG OMG! This is my first 900000 bug! :O :O :O :O
Attachment #783869 - Flags: review?(margaret.leibovic)
Assignee: nobody → sriram
Comment on attachment 783869 [details] [diff] [review] Patch Review of attachment 783869 [details] [diff] [review]: ----------------------------------------------------------------- When I installed a build with this patch applied, the top of all my old thumbnails were all cut off. Can we change how we align the images so that users will have a better experience when they upgrade to a build with the new about:home? Giving an r- right now because of the API level issue. But it would also be nice to fix the thumbnail alignment issue here, rather than in a follow-up. ::: mobile/android/base/home/TopBookmarksView.java @@ +163,5 @@ > > // Number of rows required to show these bookmarks. > final int rows = (int) Math.ceil((double) total / mNumColumns); > final int childrenHeight = childHeight * rows; > + final int verticalSpacing = rows > 0 ? (rows - 1) * getVerticalSpacing() : 0; getVerticalSpacing() is only available in API level 16: https://developer.android.com/reference/android/widget/GridView.html#getVerticalSpacing%28%29 Is there a support API you can import? A few more comments about all these calculations would also be good.
Attachment #783869 - Flags: review?(margaret.leibovic) → review-
Oh! good catch. Let me do a work-around for this.
Attached patch PatchSplinter Review
Going the traditional way to solve this issue.
Attachment #783869 - Attachment is obsolete: true
Attachment #784574 - Flags: review?(margaret.leibovic)
Comment on attachment 784574 [details] [diff] [review] Patch Review of attachment 784574 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Wes pointed me to bug 888507 about the thumbnails looking bad when upgrading to the new about:home, so I guess that's already a known issue. ::: mobile/android/base/home/TopBookmarksView.java @@ +39,5 @@ > > // Number of columns to show. > private final int mNumColumns; > > + // Vertical spacing inbetween the rows. Nit: "in between" is two words.
Attachment #784574 - Flags: review?(margaret.leibovic) → review+
(In reply to :Margaret Leibovic from comment #5) > Looks good to me. Wes pointed me to bug 888507 about the thumbnails looking > bad when upgrading to the new about:home, so I guess that's already a known > issue. So this isn't fixed by this patch, right?
This patch changes the aspect ratio and adds a vertical spacing.
Whiteboard: fixed-fig
(In reply to Wesley Johnston (:wesj) from comment #6) > (In reply to :Margaret Leibovic from comment #5) > > Looks good to me. Wes pointed me to bug 888507 about the thumbnails looking > > bad when upgrading to the new about:home, so I guess that's already a known > > issue. > > So this isn't fixed by this patch, right? I'm not sure what problem you were seeing before, but with this patch I was seeing that the top of old thumbnails were cut off. However, I was testing on upgrade from a recent version of fig to one with this patch applied, so we should re-test with the kind of upgrade that will happen after we merge fig to m-c. We can do that in bug 888507.
(In reply to :Margaret Leibovic from comment #5) > Comment on attachment 784574 [details] [diff] [review] > Patch > > Review of attachment 784574 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good to me. Wes pointed me to bug 888507 about the thumbnails looking > bad when upgrading to the new about:home, so I guess that's already a known > issue. > > ::: mobile/android/base/home/TopBookmarksView.java > @@ +39,5 @@ > > > > // Number of columns to show. > > private final int mNumColumns; > > > > + // Vertical spacing inbetween the rows. > > Nit: "in between" is two words. Aaah! I made this change. But forgot to qref before landing it :(
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: