Vanessa 2023-01-26 23:27:30 +08:00
parent 62e35b5c52
commit dc2691d6a9
3 changed files with 2 additions and 3 deletions

View file

@ -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";