Jesus sucks
This commit is contained in:
7
backend/frontend/node_modules/@restart/ui/esm/getScrollbarWidth.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@restart/ui/esm/getScrollbarWidth.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Get the width of the vertical window scrollbar if it's visible
|
||||
*/
|
||||
export default function getBodyScrollbarWidth(ownerDocument = document) {
|
||||
const window = ownerDocument.defaultView;
|
||||
return Math.abs(window.innerWidth - ownerDocument.documentElement.clientWidth);
|
||||
}
|
||||
Reference in New Issue
Block a user