���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/lnovel/layout/default/node_modules/sweetalert2/src/utils/ |
import { measureScrollbar } from './dom/measureScrollbar.js' /** * Remember state in cases where opening and handling a modal will fiddle with it. * @type {number | null} */ let previousBodyPadding = null export const fixScrollbar = () => { // for queues, do not do this more than once if (previousBodyPadding !== null) { return } // if the body has overflow if (document.body.scrollHeight > window.innerHeight) { // add padding so the content doesn't shift after removal of scrollbar previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right')) document.body.style.paddingRight = `${previousBodyPadding + measureScrollbar()}px` } } export const undoScrollbar = () => { if (previousBodyPadding !== null) { document.body.style.paddingRight = `${previousBodyPadding}px` previousBodyPadding = null } }