Unverified Commit 218009a5 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

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

* fix: wrong position of UsageStatItem's popup

* Replace TAB into Space for eslint

---------
Co-authored-by: 's avatarAthurg Feng <athurg@gooth.org>
parent 5340008a
...@@ -46,7 +46,8 @@ export const getElementBounding = (element: HTMLElement, relativeEl?: HTMLElemen ...@@ -46,7 +46,8 @@ export const getElementBounding = (element: HTMLElement, relativeEl?: HTMLElemen
return false; return false;
} }
if (window.getComputedStyle(element).getPropertyValue("position") === "fixed") { const position = window.getComputedStyle(element).getPropertyValue("position");
if (position === "fixed" || position === "static") {
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment