/
githubmirror
/
fullPage.js
Обзор
Документация
Войти
/
githubmirror
/
fullPage.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/js/common/addTableClass.js
27 строк
791 B
Alvaro Trigo López
- Fixed bug: Section Overflows with scrollBar:true & large content #4447
30 авг 2022, 13:28
30 авг 2022, 13:28
7769ef3
Код
Авторство
О чём код?
import * as utils from './utils.js'; import { getOptions } from "./options.js"; import { TABLE } from './selectors.js'; import { scrollOverflowHandler } from '../scrolloverflow.js'; export function addTableClass(element){ if(!getOptions().verticalCentered){ return; } // Overflowing sections when scrollOverflow is disabled will be autoHeight // and won't require vertical aligment if( !getOptions().scrollOverflow && scrollOverflowHandler.shouldBeScrollable(element.item) ){ return; } if(!scrollOverflowHandler.isScrollable(element)){ //In case we are styling for the 2nd time as in with reponsiveSlides if(!utils.hasClass(element.item, TABLE)){ utils.addClass(element.item, TABLE); } } }