Closed Bug 604866 Opened 14 years ago Closed 14 years ago

Zoom-in not working above a certain preview size

Categories

(Firefox Graveyard :: Panorama, defect, P4)

x86
All
defect

Tracking

(blocking2.0 final+)

VERIFIED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: micmon, Assigned: mitcho)

Details

(Keywords: polish, Whiteboard: [good first bug][visual])

Attachments

(1 file, 3 obsolete files)

Have (at least) one group in panorama with one tab in it. Size the group in a way that the tab preview is small, say 200 pixels wide: the zoom-in effect works fine.

Now enlarge this tab group to make the tab preview big, about 700-750 pixels wide. Now click the tab. Instead of expanding, to all sides, the tab preview actually shrinks and moves to the top left corner which is exactly the opposite of what makes sense.
I've seen this and it's bothered me... I'll take it.
Assignee: nobody → mitcho
Status: NEW → ASSIGNED
Priority: -- → P4
Whiteboard: [good first bug][visual]
Attached patch Patch v1 (obsolete) — Splinter Review
To test the effects of this patch, try zooming in or out on a tab whose thumbnail in Panorama is greater than 1/1.7 (~60%) of the width of the window.
Attachment #485602 - Flags: ui-review?(aza)
Attachment #485602 - Flags: feedback?(ian)
Comment on attachment 485602 [details] [diff] [review]
Patch v1

>+    if (scaleCheat === undefined)
>+      scaleCheat = 1.7;

This should be ...typeof scaleCheat == "undefined"... I mean, I suppose as long as no one has created a variable named "undefined" then it is in fact undefined, but it seems kind of sketchy to me.

Otherwise looks good. Bravo for reducing our redundancy!
Attachment #485602 - Flags: feedback?(ian) → feedback+
Comment on attachment 485602 [details] [diff] [review]
Patch v1

if (!scaleCheat)... would be fine as well in this context; you don't want to be dividing by zero anyway.
Attached patch Patch v2 (obsolete) — Splinter Review
Attachment #485602 - Attachment is obsolete: true
Attachment #487248 - Flags: review?(dolske)
Attachment #485602 - Flags: ui-review?(aza)
blocking2.0: --- → ?
Attachment #487248 - Flags: review?(dolske)
Attachment #487248 - Flags: review+
Attachment #487248 - Flags: approval2.0?
blocking2.0: ? → final+
Keywords: polish
Comment on attachment 487248 [details] [diff] [review]
Patch v2

Canceling approval now that it's blocking. Mitcho, please package. Does it need try?
Attachment #487248 - Flags: approval2.0?
Attached patch Patch 2, updated for rot (obsolete) — Splinter Review
Updated for rot so sent to try, just in case: ca073655dc07
Attachment #487248 - Attachment is obsolete: true
Try was inconclusive (with a lot of intermittent orange) so sent again: 8340b5949ef2
One (different) intermittent orange again, so running again: 5cb1c0e374ff
Finally got a completely clean try. Ready for checkin.
Attachment #492227 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/70489f92c25f
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Verified in recent nightly minefield build
Status: RESOLVED → VERIFIED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: