window, pos save and restore, add min window space to the top

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

View File

@ -1490,7 +1490,7 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
if ((left + minWidth) > frameRight! ||
(top + minWidth) > frameBottom! ||
(left + width - minWidth) < frameLeft ||
top < frameTop!) {
(top - minWidth) < frameTop!) {
return null;
} else {
return Offset(left, top);