mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
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>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user