yohei0125 4 лет назад
Родитель
Сommit
7c86fe08d2
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      packages/app/src/components/StickyStretchableScroller.jsx

+ 6 - 2
packages/app/src/components/StickyStretchableScroller.jsx

@@ -63,11 +63,13 @@ const StickyStretchableScroller = (props) => {
    * Reset scrollbar
    */
   const resetScrollbar = useCallback(() => {
+    console.log('------');
     const contentsElem = document.querySelector(contentsElemSelector);
+    console.log('contentsElem', contentsElem);
     if (contentsElem == null) {
       return;
     }
-
+    console.log('scrollTargetSelector', scrollTargetSelector);
     const viewHeight = calcViewHeightFunc != null
       ? calcViewHeightFunc()
       : 'auto';
@@ -79,7 +81,9 @@ const StickyStretchableScroller = (props) => {
     logger.debug(`[${scrollTargetSelector}] contentsHeight`, contentsHeight);
 
     const isScrollEnabled = viewHeight === 'auto' || (viewHeight < contentsHeight);
-
+    console.log('viewHeight', viewHeight);
+    console.log('contentsHeight', contentsHeight);
+    console.log('viewHeight < contentsHeight', viewHeight < contentsHeight);
     $(scrollTargetSelector).slimScroll({
       color: '#666',
       railColor: '#999',