Closed Bug 653547 Opened 13 years ago Closed 13 years ago

Scrollbar in reCAPTCHA UI

Categories

(Firefox :: Sync, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

(Whiteboard: [ux-eye])

Attachments

(2 files, 1 obsolete file)

Continuation from Bug 653307.
Attached patch Add minwidth to wizard. v1 (obsolete) — Splinter Review
Needs testing on Windows and Linux...
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Attachment #528946 - Flags: review?(philipp)
STR:

* New profile.
* Set up Sync.
* No horizontal scrollbar should be visible in captcha dialog.
* Please report any visual oddities.
Comment on attachment 528946 [details] [diff] [review]
Add minwidth to wizard. v1

No styling in XUL, please! You want to be modifying the CSS! Here's the one for OS X: https://mxr.mozilla.org/services-central/source/services-central/browser/themes/pinstripe/browser/syncSetup.css#3

I wonder if instead of making the wizard wider we can reduce the margin for the captcha browser (negative margins, if we have to.)
Attachment #528946 - Flags: review?(philipp) → review-
Negative margins work. Any tips on finding the minimum applicable value? I flat-out guessed, and it looks fine (presumably because XUL is centering the browser regardless), but I can't say I can back up the numbers with science.
Attachment #528946 - Attachment is obsolete: true
Attachment #529165 - Flags: review?(philipp)
Attached image Updated appearance.
Comment on attachment 529165 [details] [diff] [review]
Negative margins.

All lengths in the wizard CSS so far are in 'em' units, in particular the left and right paddings that are constraining the captcha [1]. Introducing a value in 'px' here reminds me of the 1999 Mars Orbiter crash [2].

Also, you need (presumably) the same change in winstripe and gnomestripe.

[1] https://mxr.mozilla.org/services-central/source/services-central/browser/themes/pinstripe/browser/syncSetup.css#20
[2] https://secure.wikimedia.org/wikipedia/en/wiki/Mars_Climate_Orbiter#Communications_loss
Attachment #529165 - Flags: review?(philipp) → review-
(In reply to comment #6)

> All lengths in the wizard CSS so far are in 'em' units, in particular the left
> and right paddings that are constraining the captcha [1]. Introducing a value
> in 'px' here reminds me of the 1999 Mars Orbiter crash [2].

I disagree: the dimensions of the XUL browser element are in px, so it makes sense (to me at least) that additional spacing necessary to its correct display should be in the same units.

There will, of course, be a point at which pixel-sized page elements and em-sized pages must collide; I don't think the margin for the page element is the right choice in this case. The padding on the containing wizard page seems like a suitable point. (Sorry for the bad pun.)

Phrased differently: I can imagine font sizes that would cause a given em value to render this fix ineffective, by translating to an inadequate number of pixels. Ergo, we should specify the offset in pixels.


> Also, you need (presumably) the same change in winstripe and gnomestripe.

Gotcha. Need your help testing on Windows, though.
Whiteboard: [ux-eye]
Depends on: 675823
Bug 675823 fixed this.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: Firefox Sync: UI → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: