This commit is contained in:
parent
62e35b5c52
commit
dc2691d6a9
3 changed files with 2 additions and 3 deletions
|
@ -332,7 +332,6 @@ export class Wnd {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
if (targetWndElement.contains(document.querySelector(`[data-id="${tabId}"]`))) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ export const hasClosestByClassName = (element: Node, className: string, top = fa
|
|||
let e = element as HTMLElement;
|
||||
let isClosest = false;
|
||||
while (e && !isClosest && (top ? e.tagName !== "BODY" : !e.classList.contains("protyle-wysiwyg"))) {
|
||||
if (e.classList.contains(className)) {
|
||||
if (e.classList?.contains(className)) {
|
||||
isClosest = true;
|
||||
} else {
|
||||
e = e.parentElement;
|
||||
|
|
|
@ -23,7 +23,7 @@ export const setTabPosition = () => {
|
|||
const headerElement = item.headersElement.parentElement;
|
||||
const rect = headerElement.getBoundingClientRect()
|
||||
const dragElement = headerElement.querySelector('.item--readonly .fn__flex-1') as HTMLElement
|
||||
if (rect.top === 0) {
|
||||
if (rect.top <= 0) {
|
||||
dragElement.style.height = dragElement.parentElement.clientHeight + "px"
|
||||
// @ts-ignore
|
||||
dragElement.style.WebkitAppRegion = "drag";
|
||||
|
|
Loading…
Add table
Reference in a new issue