From 3e1fe50bcff6e93459832ef2b37fd5cdaffb4d94 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Tue, 29 Jan 2019 12:27:35 +0000
Subject: [PATCH] comment out set last item height function

---
 .../static_src/src/app/src/components/Listing/index.js    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/opentech/static_src/src/app/src/components/Listing/index.js b/opentech/static_src/src/app/src/components/Listing/index.js
index d1c8d0675..4144bc3dc 100644
--- a/opentech/static_src/src/app/src/components/Listing/index.js
+++ b/opentech/static_src/src/app/src/components/Listing/index.js
@@ -73,10 +73,10 @@ export default class Listing extends React.Component {
 
     // set css custom prop to allow scrolling from dropdown to last item in the list
     setLastItemHeight() {
-        const { listRef } = this.props;
-        if (listRef.current) {
-            document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px');
-        }
+        // const { listRef } = this.props;
+        // if (listRef.current) {
+        //     document.documentElement.style.setProperty('--last-listing-item-height', listRef.current.lastElementChild.offsetHeight + 'px');
+        // }
     }
 
     render() {
-- 
GitLab