diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index af1f200b2..4e5c21ced 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1487,9 +1487,9 @@ Future _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 {