Closed
Bug 419395
Opened 18 years ago
Closed 18 years ago
wrong tooltip's padding width (left and right)
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9
People
(Reporter: u294409, Assigned: ispence)
References
Details
Attachments
(2 files, 3 obsolete files)
|
1.81 KB,
patch
|
Gavin
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
|
163.96 KB,
image/png
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9b4pre) Gecko/2008022404 Fedora/8 (Werewolf) Minefield/3.0b4pre
Build Identifier:
big left and right padding compared to native tooltips appears
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
strange padding
Expected Results:
native padding, set by gtk
Updated•18 years ago
|
Version: unspecified → Trunk
| Assignee | ||
Comment 3•18 years ago
|
||
Turns out there were 2 bugs involved in this.
1) We weren't using "native padding"
2) We were adding even more padding in tooltips that resulted from hovering over bookmarks
Turns out that GTK hardcodes the padding to 4, so that part was trivial.
The second issue was also trivial once I figured out what was going on
Assignee: nobody → ispence
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #309082 -
Flags: review?(mano)
Updated•18 years ago
|
Component: Widget: Gtk → Theme
Product: Core → Firefox
QA Contact: gtk → theme
Comment 5•18 years ago
|
||
(In reply to comment #4)
> Reed, are you sure this bug appears only in Firefox?
It'll appear in anything that uses toolkit's gnomestripe, but Firefox :: Theme is the best component for it.
| Assignee | ||
Updated•18 years ago
|
Attachment #309082 -
Attachment description: Makes the padding of toolbars "native" → Makes the padding of tooltips "native"
| Assignee | ||
Comment 6•18 years ago
|
||
Has anyone seen mano? Perhaps I should change my review request
Updated•18 years ago
|
Severity: normal → minor
Summary: wrong tooltip's padding → wrong tooltip's padding width (left and right)
Updated•18 years ago
|
Attachment #309082 -
Flags: review?(gavin.sharp)
Updated•18 years ago
|
Attachment #309082 -
Flags: review?(rflint)
Comment 7•18 years ago
|
||
Comment on attachment 309082 [details] [diff] [review]
Makes the padding of tooltips "native"
>Index: toolkit/themes/gnomestripe/global/popup.css
>-.tooltip-label {
>+.tooltip-label,
>+tooltip label {
I assume this is added to fix point 2) in comment 3? Why do bookmarks tooltips have labels that aren't of class tooltip-label?
Comment 8•18 years ago
|
||
(In reply to comment #5)
> It'll appear in anything that uses toolkit's gnomestripe, but Firefox :: Theme
> is the best component for it.
Actually, toolkit theme issues should go in Toolkit:XUL Widgets, generally.
Component: Theme → XUL Widgets
Product: Firefox → Toolkit
QA Contact: theme → xul.widgets
| Assignee | ||
Comment 9•18 years ago
|
||
(In reply to comment #7)
That's correct. I can't say why the class wasn't previously used, but what I've seen, in this stage of the game only theme-only patches are likely to get checked in for trivial bugs, which is why I went with css
Comment 10•18 years ago
|
||
I don't think you should include that style rule because it's inefficient. If it really is needed I would like to know why.
| Assignee | ||
Comment 11•18 years ago
|
||
It is only needed to compensate for margins of the labels in the bookmark toolbar. If you feel it's better to add a class="tooltip-label" to the labels in the bookmark toolbar, then I can have that patch tomorrow. Without any workaround, however, the padding on those tooltips are far too large
Comment 12•18 years ago
|
||
(In reply to comment #11)
> It is only needed to compensate for margins of the labels in the bookmark
> toolbar. If you feel it's better to add a class="tooltip-label" to the labels
> in the bookmark toolbar, then I can have that patch tomorrow.
Yes, that would be best. Are they not just using <tooltip>s?
| Assignee | ||
Comment 13•18 years ago
|
||
It's closer to
<tooltip style="padding: native;">
<label style="margin: -moz-aLot;" />
<label style="margin: -moz-aLot;" />
</tooltip>
| Assignee | ||
Comment 14•18 years ago
|
||
I almost forget about this entirely.
Attachment #309082 -
Attachment is obsolete: true
Attachment #319235 -
Flags: review?(gavin.sharp)
Attachment #309082 -
Flags: review?(rflint)
Attachment #309082 -
Flags: review?(mano)
Attachment #309082 -
Flags: review?(gavin.sharp)
Updated•18 years ago
|
Attachment #319235 -
Flags: review?(gavin.sharp) → review+
Comment 15•18 years ago
|
||
Comment on attachment 319235 [details] [diff] [review]
Address comments
Corrects the tooltip padding width for Linux to not have as much padding. Just a CSS class addition to two <label>s and a CSS change.
Attachment #319235 -
Flags: approval1.9?
Comment 16•18 years ago
|
||
Comment on attachment 319235 [details] [diff] [review]
Address comments
a1.9=beltzner
Attachment #319235 -
Flags: approval1.9? → approval1.9+
Updated•18 years ago
|
Keywords: checkin-needed
Comment 17•18 years ago
|
||
mozilla/browser/base/content/browser.xul 1.465
mozilla/toolkit/themes/gnomestripe/global/popup.css 1.8
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
| Reporter | ||
Comment 18•18 years ago
|
||
the padding is now 2 times or more too big.
Attachment #305444 -
Attachment is obsolete: true
Attachment #305446 -
Attachment is obsolete: true
| Assignee | ||
Comment 19•18 years ago
|
||
Gimme 2 days. Haven't slept in 39 hours and have to write a paper when I do wake up
| Reporter | ||
Comment 20•18 years ago
|
||
Ok, good night ;) .
About bug: I noticed it appears on bookmarks bar now. In other places the padding is native.
Comment 21•18 years ago
|
||
The problem is that the .tooltip-label is never applied because it resides in popup.css. It needs to be moved to either formatting.css or global.css. As a bonus, once moved to one of those two files, it can lose the !important modifier.
Comment 22•18 years ago
|
||
Filed comment 21 as spin-off bug 419395 (since it's an issue that affects all platforms).
Comment 23•18 years ago
|
||
Er, bug 432968, I mean. I need to sleep. :P Sorry for the spam!
Comment 24•18 years ago
|
||
Shouldn't urlTooltip's label get a tooltip-label class too?
Comment 25•18 years ago
|
||
Filed bug 433066.
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•