mirror of
https://github.com/usememos/memos.git
synced 2025-10-19 02:37:19 +08: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:
parent
5340008ad7
commit
218009a5ec
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue