|
|
@@ -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',
|