Closed
Bug 1519967
Opened 7 years ago
Closed 7 years ago
Change richlistbox to use getBoundingClientRect instead of boxObject
Categories
(Core :: XUL, enhancement, P3)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla67
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: enndeakin, Assigned: enndeakin)
References
Details
Attachments
(1 file)
|
3.63 KB,
patch
|
Paolo
:
review+
|
Details | Diff | Splinter Review |
This patch also replaces some calls to clientHeight with getBoundingClientRect().height which for some reason bug 1472557 changed. I think we should use the original intent here as getBoundingClientRect().height will return the border-box as boxObject.height does whereas clientHeight returns the padding-box.
| Assignee | ||
Updated•7 years ago
|
Priority: -- → P3
| Assignee | ||
Updated•7 years ago
|
Attachment #9036416 -
Flags: review?(paolo.mozmail)
Comment 1•7 years ago
|
||
Comment on attachment 9036416 [details] [diff] [review]
Don't use the box object in richlistbox
Review of attachment 9036416 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/content/widgets/richlistbox.js
@@ +730,5 @@
> if (!aItem) {
> return false;
> }
>
> + var y = this.getBoundingClientRect().y;
I guess this.getBoundingClientRect().y == this.scrollTop + this.boxObject.y, so r+ if that's correct.
Again, worth landing after soft code freeze because regressions here might be more difficult to notice.
Attachment #9036416 -
Flags: review?(paolo.mozmail) → review+
Pushed by neil@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/75b0a937397c
remove box object computations in richlistbox, r=paolo
Comment 3•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in
before you can comment on or make changes to this bug.
Description
•