From f4b51d606f16e117e0adf79424183c3d2231a244 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Mon, 15 Oct 2018 16:49:57 +0200 Subject: [PATCH] quickfix: added maxScollTop to StickyContainer --- .../LeftNavigation/components/StickyContainer/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/Wallet/components/LeftNavigation/components/StickyContainer/index.js b/src/views/Wallet/components/LeftNavigation/components/StickyContainer/index.js index 6bc335f4..5b984583 100644 --- a/src/views/Wallet/components/LeftNavigation/components/StickyContainer/index.js +++ b/src/views/Wallet/components/LeftNavigation/components/StickyContainer/index.js @@ -129,6 +129,8 @@ export default class StickyContainer extends React.PureComponent { } // make sure that wrapper will not be over scrolled if (state.wrapperTopOffset > 0) state.wrapperTopOffset = 0; + const maxScrollTop = viewportHeight - wrapperBounds.height; + if (state.wrapperTopOffset < maxScrollTop) state.wrapperTopOffset = maxScrollTop; } else { // update wrapper "top" to be same as "aside" element state.wrapperTopOffset = asideBounds.top;