Closed
Bug 1073243
Opened 10 years ago
Closed 10 years ago
Keyword search richlistitem too tall
Categories
(Toolkit :: Autocomplete, defect)
Toolkit
Autocomplete
Tracking
()
People
(Reporter: tomasz, Assigned: dao)
References
Details
(Keywords: regression)
Attachments
(2 files, 3 obsolete files)
49.36 KB,
image/png
|
Details | |
4.54 KB,
patch
|
Unfocused
:
feedback+
|
Details | Diff | Splinter Review |
After recent awesomebar changes the keyword search richlistitem appears too big as in the screenshot. The last item is then half visible and the suggestion popup jumps when you scroll through it.
Updated•10 years ago
|
Summary: Keyword search richlistitem too high. → Keyword search richlistitem too tall
Assignee | ||
Comment 1•10 years ago
|
||
What bug broke this?
tracking-firefox35:
--- → ?
Keywords: regression,
regressionwindow-wanted
Comment 3•10 years ago
|
||
I think it was bug 1065303.
Comment 4•10 years ago
|
||
yeah, looks like the single line entries are breaking the richlistbox rhythm, the problem is likely the hardcoded margin around ac-title-box
Updated•10 years ago
|
Blocks: 1065303
Keywords: regressionwindow-wanted
Updated•10 years ago
|
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Points: --- → 3
Flags: qe-verify+
Flags: firefox-backlog+
Updated•10 years ago
|
Blocks: UnifiedComplete
Comment 7•10 years ago
|
||
I managed to obtain a regression range (per Bug 1074715):
(m-c):
Last good revision: c8e325eee9e1 (2014-09-19)
First bad revision: 27253887d2cc (2014-09-20)
Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c8e325eee9e1&tochange=27253887d2cc
(m-i):
Last good revision: 18fe3472680f
First bad revision: 206e963fb3dd
Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=18fe3472680f&tochange=206e963fb3dd
Probable cause:
86a707d5ffdb - Blair McBride — Bug 1065303 - Prepare autocomplete.xml/UnifiedComplete for adding new special result types and heuristics. r=mak
Updated•10 years ago
|
Iteration: --- → 35.3
![]() |
||
Updated•10 years ago
|
QA Contact: alexandra.lucinet
Updated•10 years ago
|
QA Contact: alexandra.lucinet → andrei.vaida
Updated•10 years ago
|
Comment 9•10 years ago
|
||
Happens all the time on Mac:
https://www.dropbox.com/s/l448xlw5add6lzk/Screenshot%202014-10-06%2015.46.03.png?dl=0
Comment 10•10 years ago
|
||
Here's a fix, but it could do with a test - I haven't had time yet to get to writing on.
Attachment #8501679 -
Flags: review?(mak77)
Comment 11•10 years ago
|
||
If someone else could step in to finish this, it would be appreciated - I know this bug is frustrating, but I'm stuck on stuff that needs to be higher priority.
Assignee: bmcbride → nobody
Status: ASSIGNED → NEW
Iteration: 35.3 → ---
Updated•10 years ago
|
Flags: needinfo?(gijskruitbosch+bugs)
Assignee | ||
Comment 12•10 years ago
|
||
Comment on attachment 8501679 [details] [diff] [review]
Patch v1 - no test
This still appears to make bogus assumptions about the size of the hidden text line. Font sizes are customizable on Windows and Linux.
Attachment #8501679 -
Flags: review?(mak77) → review-
Assignee | ||
Comment 13•10 years ago
|
||
I have an idea for a more reliable approach.
Assignee: nobody → dao
Status: NEW → ASSIGNED
Assignee | ||
Comment 14•10 years ago
|
||
Still compiling (had to clobber), but based on my userChrome.css testing I think this should work.
Attachment #8501679 -
Attachment is obsolete: true
Attachment #8501700 -
Flags: review?(gijskruitbosch+bugs)
Comment 15•10 years ago
|
||
Clever idea! It seems to be working pretty well here, though, at least on Windows, the text is not well centered.
transform: translateY(50%); seems to make it nicely centered from brief testing.
Assignee | ||
Comment 16•10 years ago
|
||
50% doesn't work well over here on Linux. I think the difference on Windows is due to ac-url-box having extra vertical margin there. I can make translateY take that into account directly.
Assignee | ||
Comment 17•10 years ago
|
||
Attachment #8501700 -
Attachment is obsolete: true
Attachment #8501700 -
Flags: review?(gijskruitbosch+bugs)
Attachment #8501714 -
Flags: review?(mak77)
Updated•10 years ago
|
Iteration: --- → 35.3
Comment 18•10 years ago
|
||
Comment on attachment 8501714 [details] [diff] [review]
patch v2
Review of attachment 8501714 [details] [diff] [review]:
-----------------------------------------------------------------
Tested on Windows 8.1 and Mavericks, it looks pretty good. I didn't test on Linux, since you did already.
I'm only a little bit scared by the fact if someone touches the margin and doesn't update the translate, this will regress... do you think it may be worth to add a comment in the margin rule stating that "If you change this, you must also correct the ac-title-box translateY rule below."? (or something along those lines). It would be needed for all of the 3 themes.
Or just put the visibility rule after the translateY ones, so that the margin rule and the translateY rule are closer.
Attachment #8501714 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 19•10 years ago
|
||
(In reply to Marco Bonardo [::mak] (needinfo? me) from comment #18)
> I'm only a little bit scared by the fact if someone touches the margin and
> doesn't update the translate, this will regress...
If the translateY doesn't take into account the margin, the title won't be centered vertically, but it won't affect the height of the richlistitem. So this particular bug won't regress.
Assignee | ||
Comment 20•10 years ago
|
||
Attachment #8501714 -
Attachment is obsolete: true
Comment 21•10 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #19)
> So this particular bug won't regress.
right, sorry I means "visually regress". Thanks for the patch!
I assume the needinfo to Gijs was cause he meant to take this bug, thus I'm clearing it, hope I'm not doing anything wrong.
Flags: needinfo?(gijskruitbosch+bugs)
Comment 22•10 years ago
|
||
Comment on attachment 8501901 [details] [diff] [review]
patch, comments added
Review of attachment 8501901 [details] [diff] [review]:
-----------------------------------------------------------------
Huh - nice idea!
Attachment #8501901 -
Flags: feedback+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox35:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Comment 24•10 years ago
|
||
(In reply to Marco Bonardo [::mak] (needinfo? me) from comment #21)
> (In reply to Dão Gottwald [:dao] from comment #19)
> > So this particular bug won't regress.
>
> right, sorry I means "visually regress". Thanks for the patch!
>
> I assume the needinfo to Gijs was cause he meant to take this bug, thus I'm
> clearing it, hope I'm not doing anything wrong.
Correct, and thank you!
I did think this morning, as a random brainwave... couldn't this just use line-height? I've not looked into it in detail, so maybe it's not an option, but that would seem less hacky than the transform (which has me worried about perf because... because).
Comment 25•10 years ago
|
||
imho, it would be hard to preserve the richlistbox rhythm with line-height. And it's a life-saver to have all of the entries the same height here.
Comment 26•10 years ago
|
||
Verified fixed on Nightly 35.0a1 (2014-10-09) using windows 7 64-bit, Ubuntu 14.04 LTS 32-bit and Mac OS X 10.9.5.
Status: RESOLVED → VERIFIED
Comment 27•10 years ago
|
||
This shouldn't have landed without a test - we have far too little test coverage for autocomplete UI, and it's prone to regressions. Filed bug 1081624.
Depends on: 1081624
You need to log in
before you can comment on or make changes to this bug.
Description
•