Initial commit
This commit is contained in:
1
wwwroot/lib/popper.js/esm/dom-utils/getDocumentRect.min.js
vendored
Normal file
1
wwwroot/lib/popper.js/esm/dom-utils/getDocumentRect.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import getDocumentElement from"./getDocumentElement.js";import getComputedStyle from"./getComputedStyle.js";import getWindowScrollBarX from"./getWindowScrollBarX.js";import getWindowScroll from"./getWindowScroll.js";import{max}from"../utils/math.js";export default function getDocumentRect(t){var e=getDocumentElement(t),o=getWindowScroll(t),l=null==(l=t.ownerDocument)?void 0:l.body,i=max(e.scrollWidth,e.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=max(e.scrollHeight,e.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),t=-o.scrollLeft+getWindowScrollBarX(t),o=-o.scrollTop;return"rtl"===getComputedStyle(l||e).direction&&(t+=max(e.clientWidth,l?l.clientWidth:0)-i),{width:i,height:r,x:t,y:o}}
|
||||
Reference in New Issue
Block a user