adjust window offset on start
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
5228b3490d
commit
343bcbb363
@ -1486,10 +1486,11 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
|
|||||||
: kMobileMaxDisplaySize)
|
: kMobileMaxDisplaySize)
|
||||||
.toDouble();
|
.toDouble();
|
||||||
}
|
}
|
||||||
if (left > frameRight! ||
|
final minWidth = 10.0;
|
||||||
top > frameBottom! ||
|
if ((left - minWidth) > frameRight! ||
|
||||||
(left + width) < frameLeft ||
|
(top - minWidth) > frameBottom! ||
|
||||||
(top + height) < frameTop!) {
|
(left + width + minWidth) < frameLeft ||
|
||||||
|
top < frameTop!) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return Offset(left, top);
|
return Offset(left, top);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user