allow topbar overlap during MUI element resizing

This commit is contained in:
RossAscends
2025-08-22 11:57:34 +09:00
parent ad960197b7
commit c53803730a
+3 -3
View File
@@ -570,9 +570,9 @@ export function dragElement($elmnt) {
if (top + $elmnt.height() >= winHeight) $elmnt.css('height', winHeight - top - 1 + 'px');
if (left + $elmnt.width() >= winWidth) $elmnt.css('width', winWidth - left - 1 + 'px');
}
if (top < topBarLastY && maxX >= topBarFirstX && left <= topBarFirstX) {
$elmnt.css('width', width - 1 + 'px');
}
//if (top < topBarLastY && maxX >= topBarFirstX && left <= topBarFirstX) {
// $elmnt.css('width', width - 1 + 'px');
// }
$elmnt.css({ left, top });
$elmnt.off('mouseup').on('mouseup', () => {
if (