fix adjust window, check visiable frame size
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
96e41abbaa
commit
c348282dbf
@ -701,11 +701,11 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
double scale = _screen!.scaleFactor;
|
double scale = _screen!.scaleFactor;
|
||||||
double selfWidth = _screen!.frame.width;
|
double selfWidth = _screen!.visibleFrame.width;
|
||||||
double selfHeight = _screen!.frame.height;
|
double selfHeight = _screen!.visibleFrame.height;
|
||||||
if (isFullscreen) {
|
if (isFullscreen) {
|
||||||
selfWidth = _screen!.visibleFrame.width;
|
selfWidth = _screen!.frame.width;
|
||||||
selfHeight = _screen!.visibleFrame.height;
|
selfHeight = _screen!.frame.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
final canvasModel = widget.ffi.canvasModel;
|
final canvasModel = widget.ffi.canvasModel;
|
||||||
|
Loading…
Reference in New Issue
Block a user