From 88ce98e71685c6dfa6e6479b80c6cdf457cef764 Mon Sep 17 00:00:00 2001 From: dignow Date: Thu, 27 Jul 2023 09:13:39 +0800 Subject: [PATCH] debug Signed-off-by: dignow --- flutter/lib/common.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {