aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJason <jason.daurus@gmail.com>2016-03-12 23:04:31 +0800
committerJason <jason.daurus@gmail.com>2016-03-12 23:06:21 +0800
commitae61025d5d52b639c4315696ff03162b50b75a8d (patch)
tree872944faadc590740eb0c860fb49aad1d8d0d36b /web
parent4a6edd92e661fa228f6f8607f045ef5489f58a05 (diff)
downloadmitmproxy-ae61025d5d52b639c4315696ff03162b50b75a8d.tar.gz
mitmproxy-ae61025d5d52b639c4315696ff03162b50b75a8d.tar.bz2
mitmproxy-ae61025d5d52b639c4315696ff03162b50b75a8d.zip
[web] fix virtual scroll range
Diffstat (limited to 'web')
-rw-r--r--web/src/js/components/helpers/VirtualScroll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/helpers/VirtualScroll.js b/web/src/js/components/helpers/VirtualScroll.js
index 5d4cf796..d9b31003 100644
--- a/web/src/js/components/helpers/VirtualScroll.js
+++ b/web/src/js/components/helpers/VirtualScroll.js
@@ -57,7 +57,7 @@ export function calcVScroll(opts) {
start = Math.max(0, Math.floor(viewportTop / rowHeight) - 1) & ~1;
end = Math.min(
itemCount,
- start + Math.ceil(viewportHeight / rowHeight) + 1
+ start + Math.ceil(viewportHeight / rowHeight) + 2
);
// When a large trunk of elements is removed from the button, start may be far off the viewport.