Closed
Bug 597931
Opened 14 years ago
Closed 14 years ago
New CSS' Item bounds incorrectly include highlighting
Categories
(Firefox Graveyard :: Panorama, defect, P2)
Firefox Graveyard
Panorama
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: mitcho, Assigned: mitcho)
References
Details
(Whiteboard: [visual][good first bug][b8])
Attachments
(2 files, 7 obsolete files)
166.80 KB,
image/png
|
Details | |
9.07 KB,
patch
|
Details | Diff | Splinter Review |
With the new CSS, TabItems and GroupItems' effective bounds for snapping seem to include that of their outer highlighting, which is incorrect. Either:
1. we change the CSS so that somehow the highlighting is outside of the tab div's bounds itself, or
2. we change the snapping code to compute and use the appropriate bounds instead.
I'm not entirely sure what the issue is prima facie, but I'll look into it.
Comment 1•14 years ago
|
||
Well there's your problem right there (wip attached).
Using the CSS margin to provide spacing info to our layout algorithm is a bad idea precisely for this reason; it actually affects our ability to lay things out properly.
I realize we want to help people theme Panorama, but margin isn't the solution in this case. I think it's best to get everything working properly for ff4.0 and tackle theme-ability for ff4.x.
Updated•14 years ago
|
Assignee: nobody → mitcho
Comment 2•14 years ago
|
||
By the way, Mitcho, I'm leaving this to you to sort out (unless you don't want it)... just didn't want you to think I'd taken the bug over because I made a patch.
Comment 3•14 years ago
|
||
Mitcho, do you agree with my assessment? Looks like it's causing issues in rtl-land as well (see bug 587248).
Comment 4•14 years ago
|
||
(In reply to comment #3)
> Mitcho, do you agree with my assessment? Looks like it's causing issues in
> rtl-land as well (see bug 587248).
Hmmmm... maybe it's not related to this after all.
Anyway, curious what your thoughts are here.
Comment 5•14 years ago
|
||
Yeah, I do think some of the rtl layout stuff is affected by this, in particular UI.reset(). Please test that routine in both ltr and rtl when fixing this. To test in rtl, use the "force RTL" add-on.
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•14 years ago
|
||
The solution was to remove the margins on .tab and instead add them back in .tabInGroupItem.
Attachment #478421 -
Attachment is obsolete: true
Assignee | ||
Comment 8•14 years ago
|
||
Pushing to try to get win and linux builds to test as well.
Attachment #506128 -
Flags: review?(ian)
Assignee | ||
Comment 9•14 years ago
|
||
Last attachment included some debug code.
ps: does anyone know why the margins on tabs are twice as large on Mac than Windows + Linux? Maybe we can tighten it to 6px or 4px.
Attachment #506128 -
Attachment is obsolete: true
Attachment #506130 -
Flags: review?(ian)
Attachment #506128 -
Flags: review?(ian)
Assignee | ||
Updated•14 years ago
|
Attachment #476703 -
Attachment is obsolete: true
Assignee | ||
Comment 10•14 years ago
|
||
Failed mac try on bug 587503 test. Running just that one test in isolation locally makes it pass... most likely this reflects a general weakness of that test (bug 625273), due to it not running in its own independent window and thus being sensitive to the exact positioning of the singleton group from prior tests.
Changed the bug 587503 test here to run in a new window. Sent to try.
Attachment #506130 -
Attachment is obsolete: true
Attachment #506188 -
Flags: review?(ian)
Attachment #506130 -
Flags: review?(ian)
Assignee | ||
Comment 11•14 years ago
|
||
Passed try.
Comment 13•14 years ago
|
||
Comment on attachment 506188 [details] [diff] [review]
Trivial patch v2, with update to test 587503
This patch doesn't include any test fix.
I don't know why it's wider on the Mac... I'm fine with fixing that, or filing a new bug on it so the design folks can weigh in, or whatever you think is best. :)
r- for the test fix missing
Attachment #506188 -
Flags: review?(ian) → review-
Assignee | ||
Comment 14•14 years ago
|
||
Attachment #506188 -
Attachment is obsolete: true
Attachment #506589 -
Flags: review?(ian)
Comment 15•14 years ago
|
||
Comment on attachment 506589 [details] [diff] [review]
Trivial patch v2, with update to test 587503, for real this time
>+ newWindowWithTabView(onTabViewWindowLoaded);
> }
>
>-function onTabViewWindowLoaded() {
>- window.removeEventListener("tabviewshown", onTabViewWindowLoaded, false);
>+function onTabViewWindowLoaded(win) {
>+ win.removeEventListener("tabviewshown", onTabViewWindowLoaded, false);
You don't need the removeEventListener anymore, right?
R+ with that fixed
Attachment #506589 -
Flags: review?(ian) → review+
Assignee | ||
Comment 16•14 years ago
|
||
Attachment #506589 -
Attachment is obsolete: true
Attachment #507366 -
Flags: approval2.0?
Comment 17•14 years ago
|
||
Did the latest version of this patch pass try server?
Comment 18•14 years ago
|
||
Comment on attachment 507366 [details] [diff] [review]
Patch v2.1
a=beltzner
Attachment #507366 -
Flags: approval2.0? → approval2.0+
Comment 19•14 years ago
|
||
(In reply to comment #18)
> a=beltzner
I would have liked to have seen comment 17 answered before granting approval...
Assignee | ||
Comment 20•14 years ago
|
||
Attachment #507366 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 21•14 years ago
|
||
(In reply to comment #17)
> Did the latest version of this patch pass try server?
Yes. http://tbpl.mozilla.org/?tree=MozillaTry&rev=ac2d97359e17
![]() |
||
Comment 22•14 years ago
|
||
Patch doesn't currently apply.
![]() |
||
Comment 23•14 years ago
|
||
Actually, trivially resolved, so pushed http://hg.mozilla.org/mozilla-central/rev/06d9df6ca0fa
Updated•9 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•