mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-23 10:56:31 +08:00
commit
6a97608b98
@ -731,8 +731,15 @@ class CanvasModel with ChangeNotifier {
|
|||||||
Size getSize() {
|
Size getSize() {
|
||||||
final size = MediaQueryData.fromWindow(ui.window).size;
|
final size = MediaQueryData.fromWindow(ui.window).size;
|
||||||
// If minimized, w or h may be negative here.
|
// If minimized, w or h may be negative here.
|
||||||
double w = size.width - windowBorderWidth * 2;
|
double w = size.width -
|
||||||
double h = size.height - tabBarHeight - windowBorderWidth * 2;
|
windowBorderWidth * 2 -
|
||||||
|
kDragToResizeAreaPadding.left -
|
||||||
|
kDragToResizeAreaPadding.right;
|
||||||
|
double h = size.height -
|
||||||
|
tabBarHeight -
|
||||||
|
windowBorderWidth * 2 -
|
||||||
|
kDragToResizeAreaPadding.top -
|
||||||
|
kDragToResizeAreaPadding.bottom;
|
||||||
return Size(w < 0 ? 0 : w, h < 0 ? 0 : h);
|
return Size(w < 0 ? 0 : w, h < 0 ? 0 : h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user