Merge pull request #4920 from 21pages/fix_cm

fixed cm control page width
This commit is contained in:
RustDesk 2023-07-08 22:34:25 +08:00 committed by GitHub
commit 84d7115e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 10 deletions

View File

@ -183,19 +183,14 @@ class ConnectionManagerState extends State<ConnectionManager> {
.dividerColor))),
child: ChatPage()),
),
flex: (kConnectionManagerWindowSizeOpenChat.width -
kConnectionManagerWindowSizeClosedChat
.width)
.toInt(),
)
: Offstage(),
),
Expanded(
child: pageView,
flex: kConnectionManagerWindowSizeClosedChat.width
.toInt() -
4 // prevent stretch of the page view when chat is open,
),
SizedBox(
width: kConnectionManagerWindowSizeClosedChat.width -
10, // 10 is from overflow
child: pageView,
)
],
),
),

View File

@ -225,6 +225,7 @@ void runConnectionManagerScreen(bool hide) async {
} else {
await showCmWindow(isStartup: true);
}
windowManager.setResizable(false);
// Start the uni links handler and redirect links to Native, not for Flutter.
listenUniLinks(handleByFlutter: false);
}