Closed Bug 419395 Opened 18 years ago Closed 18 years ago

wrong tooltip's padding width (left and right)

Categories

(Toolkit :: UI Widgets, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9

People

(Reporter: u294409, Assigned: ispence)

References

Details

Attachments

(2 files, 3 obsolete files)

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
Attached image firefox (obsolete) —
Attached image gnome-panel (obsolete) —
Version: unspecified → Trunk
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)
Component: Widget: Gtk → Theme
Product: Core → Firefox
QA Contact: gtk → theme
Reed, are you sure this bug appears only in Firefox?
(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.
Attachment #309082 - Attachment description: Makes the padding of toolbars "native" → Makes the padding of tooltips "native"
Has anyone seen mano? Perhaps I should change my review request
Severity: normal → minor
Summary: wrong tooltip's padding → wrong tooltip's padding width (left and right)
Attachment #309082 - Flags: review?(gavin.sharp)
Attachment #309082 - Flags: review?(rflint)
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?
(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
(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
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.
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
(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?
It's closer to <tooltip style="padding: native;"> <label style="margin: -moz-aLot;" /> <label style="margin: -moz-aLot;" /> </tooltip>
Attached patch Address comments — — Splinter Review
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)
Attachment #319235 - Flags: review?(gavin.sharp) → review+
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 on attachment 319235 [details] [diff] [review] Address comments a1.9=beltzner
Attachment #319235 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
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
Attached image screenshot —
the padding is now 2 times or more too big.
Attachment #305444 - Attachment is obsolete: true
Attachment #305446 - Attachment is obsolete: true
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Gimme 2 days. Haven't slept in 39 hours and have to write a paper when I do wake up
Ok, good night ;) . About bug: I noticed it appears on bookmarks bar now. In other places the padding is native.
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.
Depends on: 432968
Filed comment 21 as spin-off bug 419395 (since it's an issue that affects all platforms).
Er, bug 432968, I mean. I need to sleep. :P Sorry for the spam!
Shouldn't urlTooltip's label get a tooltip-label class too?
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.

Attachment

General

Creator:
Created:
Updated:
Size: