top bar 40px to 30px

This commit is contained in:
RossAscends
2023-08-23 16:41:07 +09:00
parent 5474f29f2d
commit 02ce9ba563
2 changed files with 9 additions and 9 deletions

View File

@ -521,7 +521,7 @@ export function dragElement(elmnt) {
}
//prevent resizing from top left into the top bar
if (top < 40 && maxX >= topBarFirstX && left <= topBarFirstX
if (top < 35 && maxX >= topBarFirstX && left <= topBarFirstX
) {
console.debug('prevent topbar underlap resize')
elmnt.css('width', width - 1 + "px");
@ -556,7 +556,7 @@ export function dragElement(elmnt) {
}
//prevent underlap with topbar div
if (top < 40
if (top < 35
&& (maxX >= topBarFirstX && left <= topBarFirstX //elmnt is hitting topbar from left side
|| left <= topBarLastX && maxX >= topBarLastX //elmnt is hitting topbar from right side
|| left >= topBarFirstX && maxX <= topBarLastX) //elmnt hitting topbar in the middle