diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:14:29 +0000 |
commit | fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch) | |
tree | 4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /devtools/client/webconsole/components/Output/LazyMessageList.js | |
parent | Releasing progress-linux version 124.0.1-1~progress7.99u1. (diff) | |
download | firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/client/webconsole/components/Output/LazyMessageList.js')
-rw-r--r-- | devtools/client/webconsole/components/Output/LazyMessageList.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/devtools/client/webconsole/components/Output/LazyMessageList.js b/devtools/client/webconsole/components/Output/LazyMessageList.js index 931b5bb8bd..203efbded6 100644 --- a/devtools/client/webconsole/components/Output/LazyMessageList.js +++ b/devtools/client/webconsole/components/Output/LazyMessageList.js @@ -86,7 +86,7 @@ class LazyMessageList extends Component { } // FIXME: https://bugzilla.mozilla.org/show_bug.cgi?id=1774507 - UNSAFE_componentWillUpdate(nextProps, nextState) { + UNSAFE_componentWillUpdate(nextProps) { if (nextProps.cacheGeneration !== this.props.cacheGeneration) { this.#cachedHeights = []; this.#startIndex = 0; @@ -158,10 +158,6 @@ class LazyMessageList extends Component { #cachedHeights; #scrollHandlerBinding; - get #maxIndex() { - return this.props.items.length - 1; - } - get #overdrawHeight() { return this.props.scrollOverdrawCount * this.props.itemDefaultHeight; } @@ -269,7 +265,7 @@ class LazyMessageList extends Component { #addListeners() { const { viewportRef } = this.props; viewportRef.current.addEventListener("scroll", this.#scrollHandlerBinding); - this.#resizeObserver = new ResizeObserver(entries => { + this.#resizeObserver = new ResizeObserver(() => { this.#viewportHeight = viewportRef.current.parentNode.parentNode.clientHeight; this.forceUpdate(); |