Closed
Bug 856814
Opened 12 years ago
Closed 12 years ago
[toolbox] Labels aren't centered in toolbox tabs
Categories
(DevTools :: Framework, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: harth, Assigned: harth)
References
Details
Attachments
(6 files, 1 obsolete file)
139.46 KB,
image/png
|
Details | |
389.15 KB,
image/png
|
Details | |
2.71 KB,
patch
|
Details | Diff | Splinter Review | |
3.48 KB,
patch
|
miker
:
review+
|
Details | Diff | Splinter Review |
33.81 KB,
image/png
|
Details | |
3.75 KB,
patch
|
Details | Diff | Splinter Review |
The label and icon of a tool aren't centered in each toolbox tab. They're left-justified (at least on my LTR OS X build). It doesn't look as nice, I think they should be centered.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → fayearthur
Assignee | ||
Comment 2•12 years ago
|
||
This is a regression from bug 818151. Any guesses Mike?
Comment 3•12 years ago
|
||
Yes, there was some debate whilst I was implementing side docking and we settled on left aligning them. To be honest I don't care either way. It would be a simple change if you wanted to center them.
Flags: needinfo?(mratcliffe)
Comment 4•12 years ago
|
||
I vote for them being centered :)
Comment 5•12 years ago
|
||
(In reply to Victor Porof [:vp] from comment #4) > I vote for them being centered :) Along with the icon, right ?
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Girish Sharma [:Optimizer] from comment #5) > (In reply to Victor Porof [:vp] from comment #4) > > I vote for them being centered :) > > Along with the icon, right ? Yeah, like it was before.
Assignee | ||
Comment 7•12 years ago
|
||
This was the only way I could figure out how to do it. It adds a <spacer flex="1"> in front of the icon and label. I would just remove the flex="1" on the label, but then the cropping wouldn't work when docking to the side. I haven't seen what it looks like on Win and Linux yet.
Comment 8•12 years ago
|
||
Looks Good, but a little 2 or 3 px to the right.
Assignee | ||
Comment 9•12 years ago
|
||
Thanks Girish for trying it out. The extra space appears on OS X too. I reduced the margin-start of the icon to mitigate it. I'm waiting for a Windows build, but don't have Linux right now.
Attachment #747027 -
Attachment is obsolete: true
Comment 10•12 years ago
|
||
Ah, this all makes sense now. When I made the labels flex in order to have ellipses on overflow it meant that the label always filled the remaining space in the tab, which makes the tabs look like they are not centered. Using spacers here makes sense as long as it doesn't break overflow behavior. This also means that you should remove -moz-box-align: center from .devtools-tab (toolbox.css:164).
Assignee | ||
Comment 11•12 years ago
|
||
Okay, took out the -moz-box-align, it indeed wasn't doing anything. The spacer makes both the expanded and sidebar cases work. Try builds: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/fayearthur@gmail.com-efd28b2eff90/ But if it's a few px off, we can always change later.
Assignee: nobody → fayearthur
Attachment #747670 -
Flags: review?(mratcliffe)
Updated•12 years ago
|
Attachment #747670 -
Flags: review?(mratcliffe) → review+
Comment 13•12 years ago
|
||
This breaks the gear icon for the options tab :(
Comment 14•12 years ago
|
||
To avoid this either : 1) Do not add a spacer when no label is there. 2) Add flex="1" to the icon when no label is there.
Assignee | ||
Comment 15•12 years ago
|
||
Fixed, with margin.
Assignee | ||
Comment 16•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/740fbcaa9880
Whiteboard: [fixed-in-fx-team]
Comment 17•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/740fbcaa9880
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•