Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-07-27 09:13:39 +08:00
parent 343bcbb363
commit 88ce98e716

View File

@ -1487,9 +1487,9 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
.toDouble();
}
final minWidth = 10.0;
if ((left - minWidth) > frameRight! ||
(top - minWidth) > frameBottom! ||
(left + width + minWidth) < frameLeft ||
if ((left + minWidth) > frameRight! ||
(top + minWidth) > frameBottom! ||
(left + width - minWidth) < frameLeft ||
top < frameTop!) {
return null;
} else {