GoScrobble/web/node_modules/.cache/babel-loader/e4dc76a2e44ff535db7838c57c78986a.json

1 line
2.2 KiB
JSON

{"ast":null,"code":"// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize() {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.width = '99px';\n scrollDiv.style.height = '99px';\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarSize;\n}","map":{"version":3,"sources":["/app/node_modules/@material-ui/core/esm/utils/getScrollbarSize.js"],"names":["getScrollbarSize","scrollDiv","document","createElement","style","width","height","position","top","overflow","body","appendChild","scrollbarSize","offsetWidth","clientWidth","removeChild"],"mappings":"AAAA;AACA;AACA,eAAe,SAASA,gBAAT,GAA4B;AACzC,MAAIC,SAAS,GAAGC,QAAQ,CAACC,aAAT,CAAuB,KAAvB,CAAhB;AACAF,EAAAA,SAAS,CAACG,KAAV,CAAgBC,KAAhB,GAAwB,MAAxB;AACAJ,EAAAA,SAAS,CAACG,KAAV,CAAgBE,MAAhB,GAAyB,MAAzB;AACAL,EAAAA,SAAS,CAACG,KAAV,CAAgBG,QAAhB,GAA2B,UAA3B;AACAN,EAAAA,SAAS,CAACG,KAAV,CAAgBI,GAAhB,GAAsB,SAAtB;AACAP,EAAAA,SAAS,CAACG,KAAV,CAAgBK,QAAhB,GAA2B,QAA3B;AACAP,EAAAA,QAAQ,CAACQ,IAAT,CAAcC,WAAd,CAA0BV,SAA1B;AACA,MAAIW,aAAa,GAAGX,SAAS,CAACY,WAAV,GAAwBZ,SAAS,CAACa,WAAtD;AACAZ,EAAAA,QAAQ,CAACQ,IAAT,CAAcK,WAAd,CAA0Bd,SAA1B;AACA,SAAOW,aAAP;AACD","sourcesContent":["// A change of the browser zoom change the scrollbar size.\n// Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519\nexport default function getScrollbarSize() {\n var scrollDiv = document.createElement('div');\n scrollDiv.style.width = '99px';\n scrollDiv.style.height = '99px';\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarSize;\n}"]},"metadata":{},"sourceType":"module"}