fix: wrong position of UsageStatItem's popup (#1647)

* fix: wrong position of UsageStatItem's popup

* Replace TAB into Space for eslint

---------

Co-authored-by: Athurg Feng <athurg@gooth.org>
pull/1654/head
Athurg Gooth 2 years ago committed by GitHub
parent 5340008ad7
commit 218009a5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,7 +46,8 @@ export const getElementBounding = (element: HTMLElement, relativeEl?: HTMLElemen
return false;
}
if (window.getComputedStyle(element).getPropertyValue("position") === "fixed") {
const position = window.getComputedStyle(element).getPropertyValue("position");
if (position === "fixed" || position === "static") {
return true;
}

Loading…
Cancel
Save