mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-15 12:35:54 +00:00
@@ -1487,9 +1487,9 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
|
|||||||
.toDouble();
|
.toDouble();
|
||||||
}
|
}
|
||||||
final minWidth = 10.0;
|
final minWidth = 10.0;
|
||||||
if ((left - minWidth) > frameRight! ||
|
if ((left + minWidth) > frameRight! ||
|
||||||
(top - minWidth) > frameBottom! ||
|
(top + minWidth) > frameBottom! ||
|
||||||
(left + width + minWidth) < frameLeft ||
|
(left + width - minWidth) < frameLeft ||
|
||||||
top < frameTop!) {
|
top < frameTop!) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user