Closed Bug 608604 Opened 14 years ago Closed 14 years ago

commonDialog icon and text are misaligned

Categories

(Toolkit :: General, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b10
Tracking Status
blocking2.0 --- -

People

(Reporter: mcdavis941.bugs, Assigned: Dolske)

References

Details

(Keywords: regression)

Attachments

(2 files)

In common dialogs, the vertical alignment of the text relative to the icon (on Windows, I didn't look at Linux) has changed between Fx3.6 and the 2010-10-30 nightly.

Looking at several other popups from other apps and from Windows itself, it seems like the convention is to more-or-less align the top of the text with the top of the icon.  It was that way for Fx3.6, but it's lower now for Fx4.  Seems like a regression.

This looks like it has to do with hiding the title (Bug 563274, Bug 575485) on platforms other than Mac.  Maybe also hide the spacer whenever the title is hidden?

Screenshot coming.
Attached image screenshot
Nominating for blocking, because I'm not sure how important a bug this is considered in UI-land...
blocking2.0: --- → ?
Keywords: regression
Just to amplify a little:

The dialogs at issue are the ones shown with window.alert(), window.prompt(), and window.confirm(), i.e., the ones represented by commonDialog.xul.

STR is just window.alert('your text here'), and compare the result on 3.6 vs. a trunk nightly.

The title mentioned above is <description id="info.title"> in commonDialog.xul, and the spacer is the element right after it.  The in-dialog title is there because on the Mac there's no title above the dialog (no windowframe, no titlebar), so it's shown inside the dialog itself -- but only on the Mac.  The spacer is there to separate the text of the in-dialog title (when that is shown) from the text that follows it.  When the in-dialog title is hidden, the spacer should be hidden too (I think), else you get the extra vertical space.

http://mxr.mozilla.org/mozilla-central/source/toolkit/components/prompts/content/commonDialog.xul#60

CCing Dolske because he worked on Bug 575485.

I don't know how much this matters either, but the icon does seem to stick out a little now.
Not blocking, but a polish nit we should fix. Will pick this up, perhaps in the course of something else.
Assignee: nobody → dolske
blocking2.0: ? → -
Product: Core → Toolkit
QA Contact: general → general
Attached patch Patch v.1Splinter Review
Trivial fix.
Attachment #503092 - Flags: review?(gavin.sharp)
Attachment #503092 - Flags: review?(gavin.sharp) → review+
Summary: commonDialog icon-to-text alignment has changed between fx3.6 and fx4 → commonDialog icon and text are misaligned
Pushed http://hg.mozilla.org/mozilla-central/rev/8b7333bb30b5
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b10
Depends on: 625814
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: