Open
Bug 640490
Opened 14 years ago
Updated 2 years ago
Tab titles seem inconsistently vertically aligned
Categories
(Firefox :: Theme, defect)
Tracking
()
REOPENED
People
(Reporter: djc, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
As shown in the attached screenshot, the Firefox 4.0rc1 tab titles seems slightly out of place in the Windows XP theme. It seems to me that this would look better with the text slightly higher (1, possibly 2 pixels).
Reporter | ||
Comment 1•14 years ago
|
||
Updated•14 years ago
|
Comment 2•14 years ago
|
||
I'm having the same problem on Windows 7 64-bit. They seem mis-aligned by just a tad.
Reporter | ||
Comment 3•14 years ago
|
||
Oh, I don't know, I think it looks just fine on Windows 7 (with Aero).
Comment 4•14 years ago
|
||
Stephen, should we make the tabs shorter for XP too or simply raise the text 1px?
Comment 5•14 years ago
|
||
(In reply to comment #4)
> Stephen, should we make the tabs shorter for XP too or simply raise the text
> 1px?
They should be the same height, the text just needs to move up.
Comment 6•14 years ago
|
||
Uploading patch shortly.
Assignee: nobody → fryn
Version: unspecified → Trunk
1) This will cause the text to be misaligned with the icon.
2) Whether or not it is "misaligned" very much depends on the typeface. E.g., I use Segoe UI size 8 as my UI font on XP, and it looks just fine. If I tweak it up 1px, it doesn't look any better with respect to tab alignment (but clearly worse with respect to icon alignment). And on NT6+, where Segoe UI 9 is in use, it looks even worse.
The important thing is that the icon is properly aligned WRT the tab, and it is in the status quo. And the layout algorithms ensure that the text in turn is aligned with the icon. A blanket override of that alignment to fix a minor "problem" with one typeface just seems wrong (esp. if that is mostly a perceptive problem resulting from the specific shape and sizing of that typeface).
Comment 10•14 years ago
|
||
Comment on attachment 524803 [details] [diff] [review]
patch
(In reply to comment #9)
You have valid points. Perhaps, this bug is actually invalid.
Stephen, what do you think?
Should we move both the favicon and the text? Then, the favicon would no longer have equal horizontal and vertical padding from the tab border.
Are we actually using the wrong typeface for our UI on XP or 7?
Attachment #524803 -
Flags: review?(dao)
Comment 11•14 years ago
|
||
(In reply to comment #10)
> Are we actually using the wrong typeface for our UI on XP or 7?
The typeface is correct, since we are (and always have been) using the system UI typeface and font size set in Windows' display preferences. On XP, the default is Tahoma 8, but it can be changed fairly easily, so everyone uses it.
If the problem was systemic--where every typeface at every size looks like it's off by 1px--then a fix that bumps everything by 1px would make sense. But the problem isn't systemic, and at the end of the day, it's also a fairly minor issue: something that is probably the result of how things are rounded when centering and/or how a particular typeface appears because of its shape or use of space.
BTW, you can use the DOM Inspector to make changes to the CSS on a live install to try out various settings.
Comment 12•14 years ago
|
||
Comment on attachment 524803 [details] [diff] [review]
patch
Moving the label will just make it wrongly aligned in the opposite direction. We'd want to move it by half a pixel (can't do) or subtract a pixel from the tab's top padding (can do).
The reason this was seen as XP-specific is probably the different line height we get with DirectWrite, so if bug 643781 got fixed, we would see this across the board.
Also, tab-text is the wrong class for this (tab-label would be right).
Attachment #524803 -
Flags: review-
Comment 13•14 years ago
|
||
(In reply to comment #9)
> The important thing is that the icon is properly aligned WRT the tab, and it is
> in the status quo.
It doesn't look quite vertically centered in attachment 518308 [details].
Comment 14•14 years ago
|
||
(In reply to comment #11)
> BTW, you can use the DOM Inspector to make changes to the CSS on a live install
> to try out various settings.
Yes, I have been using this.
(In reply to comment #12)
> Comment on attachment 524803 [details] [diff] [review]
> patch
>
> Moving the label will just make it wrongly aligned in the opposite direction.
> We'd want to move it by half a pixel (can't do) or subtract a pixel from the
> tab's top padding (can do).
>
> The reason this was seen as XP-specific is probably the different line height
> we get with DirectWrite, so if bug 643781 got fixed, we would see this across
> the board.
Ah, that makes more sense. Will do.
> Also, tab-text is the wrong class for this (tab-label would be right).
The difference is non-obvious from just looking at tabbrowser.xml, but after looking at tabbox.xml, I get it now.
Comment 15•14 years ago
|
||
Attachment #524803 -
Attachment is obsolete: true
Attachment #524879 -
Flags: review?(dao)
Comment 16•14 years ago
|
||
Comment on attachment 524879 [details] [diff] [review]
patch v2
This causes misalignment when using DirectWrite, so I think we need to exclude Vista/7 for now. Please also add a reference to bug 643781.
Attachment #524879 -
Flags: review?(dao) → review-
Comment 17•14 years ago
|
||
Is this what you mean?
Attachment #524879 -
Attachment is obsolete: true
Attachment #525103 -
Flags: review?(dao)
Comment 18•14 years ago
|
||
Comment on attachment 525103 [details] [diff] [review]
patch v3 (backed out)
exactly
Attachment #525103 -
Flags: review?(dao) → review+
Updated•14 years ago
|
Keywords: checkin-needed
Comment 19•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox4.2
Comment 20•14 years ago
|
||
People on MozillaZine say that this broke tabs touching the edge of the screen when maximized on XP. http://forums.mozillazine.org/viewtopic.php?p=10678595
Alice, can tabs still be selected while the mouse is at the top of the screen?
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: FIXED → ---
Target Milestone: Firefox4.2 → ---
Comment 21•14 years ago
|
||
Gah, Firefox is overly aggressively caching my form fields again!
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox4.2
Comment 22•14 years ago
|
||
(In reply to comment #20)
> People on MozillaZine say that this broke tabs touching the edge of the screen
> when maximized on XP. http://forums.mozillazine.org/viewtopic.php?p=10678595
>
> Alice, can tabs still be selected while the mouse is at the top of the screen?
See http://forums.mozillazine.org/viewtopic.php?p=10678793#p10678793
Comment 23•14 years ago
|
||
(In reply to comment #22)
I saw that. There is a difference between the visual appearance of "touching" and whether clicking the top of the screen selects a tab. I am asking to confirm whether clicking the top of the screen still selects a tab.
Comment 24•14 years ago
|
||
(In reply to comment #23)
> (In reply to comment #22)
>
> I saw that. There is a difference between the visual appearance of "touching"
> and whether clicking the top of the screen selects a tab. I am asking to
> confirm whether clicking the top of the screen still selects a tab.
clicking at the top of the screen(mouse pointer touch edge)
1. I cannot select tab (normal and pinned tab)
2. I cannot Open NewTab(not overflowed / overflowed state)
3. I cannot scroll tabScrip(left/right side)
4. I cannot open List All Tabs
5. I can still open Firefox button
6. I can still click Minimize/Restore/Close buttons
7. Double clicking at the top of tab etc make browser normal mode
Comment 25•14 years ago
|
||
(In reply to comment #24)
Okay. I'll get this backed out then.
Comment 26•14 years ago
|
||
(In reply to comment #24)
And thank you.
Comment 27•14 years ago
|
||
Backed out due to XP regression as noted by MozillaZine users and described in comment 24.
http://hg.mozilla.org/mozilla-central/rev/a803f8a460be
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: FIXED → ---
Updated•14 years ago
|
Assignee: fryn → nobody
Updated•14 years ago
|
Attachment #525103 -
Attachment description: patch v3 → patch v3 (backed out)
Comment 28•14 years ago
|
||
While I may take another look at this bug before Firefox 6, feel free to take it. Patches are welcome. :)
Target Milestone: Firefox5 → Firefox 3
Updated•14 years ago
|
Target Milestone: Firefox 3 → ---
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•