Merge pull request #1579 from Kingtous/master

fix: place obx correctly
This commit is contained in:
RustDesk 2022-09-19 11:13:33 +08:00 committed by GitHub
commit 227e455609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -57,9 +57,9 @@ class _DesktopTabPageState extends State<DesktopTabPage> {
}) })
]), ]),
); );
return Obx(() => Platform.isMacOS return Platform.isMacOS
? tabWidget ? tabWidget
: DragToResizeArea( : Obx(() => DragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget)); resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, child: tabWidget));
} }

View File

@ -140,9 +140,9 @@ class _ConnectionTabPageState extends State<ConnectionTabPage> {
}), }),
)), )),
); );
return Obx(() => Platform.isMacOS return Platform.isMacOS
? tabWidget ? tabWidget
: SubWindowDragToResizeArea( : Obx(() => SubWindowDragToResizeArea(
resizeEdgeSize: fullscreen.value ? 1.0 : 8.0, resizeEdgeSize: fullscreen.value ? 1.0 : 8.0,
windowId: windowId(), windowId: windowId(),
child: tabWidget)); child: tabWidget));