🐛: ...
This commit is contained in:
parent
7efb6a0935
commit
6d4ef836ef
@ -371,7 +371,9 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
|||||||
let transOffsetTop = 15;
|
let transOffsetTop = 15;
|
||||||
// @ts-ignore 删除项的高度
|
// @ts-ignore 删除项的高度
|
||||||
let offsetHeight =
|
let offsetHeight =
|
||||||
|
// @ts-ignore
|
||||||
document.getElementById(layerId)?.firstElementChild?.firstElementChild
|
document.getElementById(layerId)?.firstElementChild?.firstElementChild
|
||||||
|
// @ts-ignore
|
||||||
?.offsetHeight;
|
?.offsetHeight;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.NotifiyQueen = window.NotifiyQueen || [];
|
window.NotifiyQueen = window.NotifiyQueen || [];
|
||||||
@ -393,10 +395,12 @@ export function removeNotifiyFromQueen(layerId: string | undefined) {
|
|||||||
if (offsetType === "rt" || offsetType === "lt") {
|
if (offsetType === "rt" || offsetType === "lt") {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
dom.style["top"] =
|
dom.style["top"] =
|
||||||
|
// @ts-ignore
|
||||||
parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
parseFloat(dom.style["top"]) - transOffsetTop - offsetHeight + "px";
|
||||||
} else {
|
} else {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
let bottom =
|
let bottom =
|
||||||
|
// @ts-ignore
|
||||||
parseFloat(dom.style["top"].split(" - ")[1]) -
|
parseFloat(dom.style["top"].split(" - ")[1]) -
|
||||||
transOffsetTop -
|
transOffsetTop -
|
||||||
offsetHeight;
|
offsetHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user